Re: [PATCH v2 net] net: usb: sr9700: fix uninitialized variable use in sr_mdio_read

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

 



On Wed, Jul 24, 2024 at 09:15:54AM +0800, Ma Ke wrote:
> It could lead to error happen because the variable res is not updated if
> the call to sr_share_read_word returns an error. In this particular case
> error code was returned and res stayed uninitialized.
> 
> This can be avoided by checking the return value of sr_share_read_word
> and propagating the error if the read operation failed.
> 
> Found by code review.

For V1, you were given the comment that there are other functions
which also suffer from this problem. You don't appear to of addressed
them in this patch, nor replied saying you won't because....

Please don't ignore reviewers.

	Andrew





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

  Powered by Linux