]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: caif: spi: fix potential NULL dereference
authorVasiliy Kulikov <segoon@openwall.com>
Thu, 18 Nov 2010 18:35:58 +0000 (10:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2010 18:35:58 +0000 (10:35 -0800)
commit8ea91226eccf6c8ab9c55054b24c21021d4d9d19
tree70fd9d9479d09c1dcf7d97264ebc03fd66e9cc11
parent7d8e76bf9ac3604897f0ce12e8bf09b68c2a2c89
net: caif: spi: fix potential NULL dereference

alloc_netdev() is not checked here for NULL return value.  dev is
check instead.  It might lead to NULL dereference of ndev.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_spi.c