Thread (6 messages) flat view 6 messages, 4 authors, 2021-08-04

Re: [PATCH net v3 1/2] net: usb: pegasus: Check the return value of get_geristers() and friends;

From: Pavel Skripkin <hidden>
Date: 2021-08-03 17:49:55
Also in: stable

On Tue,  3 Aug 2021 20:25:23 +0300
Petko Manolov [off-list ref] wrote:
From: Petko Manolov <petkan@nucleusys.com>

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>
---
 drivers/net/usb/pegasus.c | 108
++++++++++++++++++++++++++------------ 1 file changed, 75
insertions(+), 33 deletions(-)
All's good! Thank you :)

Reviewed-by: Pavel Skripkin <redacted>


With regards,
Pavel Skripkin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help