staging: ks7010: don't print skb->dev->name if skb is null
authorColin Ian King <colin.king@canonical.com>
Mon, 15 Aug 2016 14:45:04 +0000 (15:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:12:57 +0000 (18:12 +0200)
commit95d2a324660ac46420b64481507dcedab7341dad
tree7fc08ec4556b56b406f2a2640e8107d22005e0bf
parent9afe11e956766eaac4643adaaf49f223dd536c92
staging: ks7010: don't print skb->dev->name if skb is null

A null pointer dereference will occur when skb is null and
skb->dev->name is printed.  Replace the skb->dev->name with
plain text "ks_wlan" to fix this.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c