https://github.com/torvalds/linux
Revision 9afec6efc6b1043692eada758cd7837623dd943b authored by Andy Shevchenko on 27 January 2015, 16:38:03 UTC, committed by David S. Miller on 27 January 2015, 20:24:30 UTC
In the case when alloc_netdev fails we return NULL to a caller. But there is no
check for NULL in the probe drivers. This patch changes NULL to an error
pointer. The function description is amended to reflect what we may get
returned.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 24e579c
History
Tip revision: 9afec6efc6b1043692eada758cd7837623dd943b authored by Andy Shevchenko on 27 January 2015, 16:38:03 UTC
stmmac: prevent probe drivers to crash kernel
Tip revision: 9afec6e
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 292.1 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top