]> asedeno.scripts.mit.edu Git - linux.git/commit
ieee802154: ca8210: Fix a potential NULL pointer dereference
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Aug 2017 16:25:02 +0000 (18:25 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Aug 2017 18:51:30 +0000 (20:51 +0200)
commitf00c2987bfdde69c6eb27b5547d222beb5bc7552
tree1dceefa1a9a222b0277d53e1f9d8701393071d30
parent9374bf18dbb533912898b07b3751fbce40fae5c4
ieee802154: ca8210: Fix a potential NULL pointer dereference

'spi' is known to be NULL, so we dereference a NULL pointer here.
Use 'pr_crit()' instead of 'dev_crit()' to report the message.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/ca8210.c