Re: [PATCH] net: usb: sr9800: fix uninitialized local variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Valentin Vidic <vvidic@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Oct 2019 22:20:20 +0200

> Make sure res does not contain random value if the call to
> sr_read_cmd fails for some reason.
> 
> Reported-by: syzbot+f1842130bbcfb335bac1@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Valentin Vidic <vvidic@xxxxxxxxxxxxxxxxxxxxxx>

Applied.

But often in situation like this a failed read can more aptly be indicated by
an all-1's value.



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux