]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b4d0b616b9197e0e3753976c40a0910f04b8391
treedf29ad67b7cfd4badd232dea48f906c8fc0c7f27
parent8111ffe51212c852c79e8a85f3c6afc9c971dc2c
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