From: Fabio Estevam Date: Mon, 10 Aug 2015 17:22:43 +0000 (-0300) Subject: mkiss: Fix error handling in mkiss_open() X-Git-Tag: omap-for-v4.3/fixes-merge-window~107^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d332d92a95c9c67abe08b5f7cba64d8fc1e3c76;p=pandora-kernel.git mkiss: Fix error handling in mkiss_open() 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed