]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c75d2c3ac29af8899e1c80fafb5f7478336184d
tree7fc08ec4556b56b406f2a2640e8107d22005e0bf
parentad14a9bfe3f2dc38b0a9a96eea7662c3bbe6c4bb
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