https://github.com/torvalds/linux
Revision 9d332d92a95c9c67abe08b5f7cba64d8fc1e3c76 authored by Fabio Estevam on 10 August 2015, 17:22:43 UTC, committed by David S. Miller on 11 August 2015, 04:10:31 UTC
If register_netdev() fails we are not propagating the error and
we return success because ax_open() succeeded previously.

Fix this by checking the return value of ax_open() and
register_netdev() and propagate the error in case of failure.

Reported-by: RUC_Soft_Sec <zy900702@163.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1825545
History
Tip revision: 9d332d92a95c9c67abe08b5f7cba64d8fc1e3c76 authored by Fabio Estevam on 10 August 2015, 17:22:43 UTC
mkiss: Fix error handling in mkiss_open()
Tip revision: 9d332d9
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.2 KB
.mailmap -rw-r--r-- 5.3 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 313.5 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top