Staging: wlan-ng: Handle error condition.
PATCH v3 1/1 Staging: wlan-ng: Handle error condition.
Handle error condition.
Signed-off-by Sandhya Bankar <[email protected]>
---
Changes in v3:
Change in commit message.
drivers/staging/wlan-ng/prism2fw.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/staging/wlan-ng/prism2fw.c +4 -0
@@ -333,6 +333,10 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr,/* Make the image chunks */ result =mkimage (fchunk, &nfchunks); +if (result) { +netdev_err (wlandev->netdev,"Failed to make image chunk.\n" ); +return 1 ; + }/* Do any plugging */ result =plugimage (fchunk, nfchunks, s3plug, ns3plug, &pda);
Signature · 1 line
1.8.3.4