Skip to content

Commit 76ff0e6

Browse files
Pavan Savoygregkh
authored andcommitted
drivers:misc: ti-st: free skb on firmware download
If during validation of the firmware download the data doesn't match what is expected out of the chip, this calls for a firmware download failure and a retry. Free the SKB which collects response during such scenarios. Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent d0344ef commit 76ff0e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/misc/ti-st/st_kim.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void validate_firmware_response(struct kim_data_s *kim_gdata)
6868
if (unlikely(skb->data[5] != 0)) {
6969
pr_err("no proper response during fw download");
7070
pr_err("data6 %x", skb->data[5]);
71+
kfree_skb(skb);
7172
return; /* keep waiting for the proper response */
7273
}
7374
/* becos of all the script being downloaded */

0 commit comments

Comments
 (0)