Re: [PATCH v2] nfc: s3fwrn5: replace the assertion with a WARN_ON

From: David Miller
Date: Thu Dec 19 2019 - 20:33:38 EST


From: Aditya Pakki <pakki001@xxxxxxx>
Date: Tue, 17 Dec 2019 14:43:00 -0600

> 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@xxxxxxx>

Applied.