Commit 735e613f authored by Petko Manolov's avatar Petko Manolov Committed by Sasha Levin
Browse files

net: usb: pegasus: Check the return value of get_geristers() and friends;



[ Upstream commit 8a160e2e ]

Certain call sites of get_geristers() did not do proper error handling.  This
could be a problem as get_geristers() typically return the data via pointer to a
buffer.  If an error occurred the code is carelessly manipulating the wrong data.

Signed-off-by: default avatarPetko Manolov <petkan@nucleusys.com>
Reviewed-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6b368411
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment