]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: replace BUG_ON with recovery code
authorAditya Pakki <pakki001@umn.edu>
Sun, 15 Dec 2019 17:51:30 +0000 (11:51 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:29:05 +0000 (16:29 -0800)
commitdfc15d02eb7b5e5b3ae428ec0c94ce460585cede
tree2c08e289a64bad2408aac3b508e1599785161ec6
parent082866a7a6441c93fdb23843b8d477a9856718ef
net: caif: replace BUG_ON with recovery code

In caif_xmit, there is a crash if the ptr dev is NULL. However, by
returning the error to the callers, the error can be handled. The
patch fixes this issue.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_serial.c