net: usb: pegasus: Check the return value of get_geristers() and friends;
authorPetko Manolov <petkan@nucleusys.com>
Tue, 3 Aug 2021 17:25:23 +0000 (20:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 09:38:42 +0000 (10:38 +0100)
commit8a160e2e9aeb8318159b48701ad8a6e22274372d
treedf29ad67b7cfd4badd232dea48f906c8fc0c7f27
parent13a9c4ac319a23c792e2e03ac73777b6710132c3
net: usb: pegasus: Check the return value of get_geristers() and friends;

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: Petko Manolov <petkan@nucleusys.com>
Reviewed-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/pegasus.c