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

back to top