Skip to content
Commit 9d332d92 authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller
Browse files

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: default avatarRUC_Soft_Sec <zy900702@163.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18255457
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment