summaryrefslogtreecommitdiff
path: root/net/rxrpc
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-12-17 23:43:00 +0300
committerDavid S. Miller <davem@davemloft.net>2019-12-20 04:33:23 +0300
commit615f22f58029aa747b12768985e7f91cd053daa2 (patch)
treeeb400c7346bab7b096faa5c553553397df76b728 /net/rxrpc
parenta019739c1c32cbd07f62b1d84fa57620897464b1 (diff)
downloadlinux-615f22f58029aa747b12768985e7f91cd053daa2.tar.xz
nfc: s3fwrn5: replace the assertion with a WARN_ON
In s3fwrn5_fw_recv_frame, if fw_info->rsp is not empty, the current code causes a crash via BUG_ON. However, s3fwrn5_fw_send_msg does not crash in such a scenario. The patch replaces the BUG_ON by returning the error to the callers and frees up skb. Signed-off-by: Aditya Pakki <pakki001@umn.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions