Skip to contentSkip to conversation

staging: rtl8723bs: fix unchecked return value of skb_copy_bits

PATCH Minu Jin 1 participant 1 message Jan 20 Staging

lore
Share & tools
lore

Minu Jin

author
#0 lore raw

Hi Greg,

Thank you for the hint and review

I realized that checking only 'ret < 0' is not enough if the function reads fewer bytes than requested.

I think modifying the function itself is better than updating all callers. In v4, I will modify _rtw_pktfile_read().

Minu Jin