Re: [PATCH] mkiss: Fix error handling in mkiss_open()

2015-08-10 Thread David Miller
From: Fabio Estevam Date: Mon, 10 Aug 2015 14:22:43 -0300 > 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

[PATCH] mkiss: Fix error handling in mkiss_open()

2015-08-10 Thread Fabio Estevam
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 Signed-off-by: Fabio Estevam