Thread (7 messages) 7 messages, 2 authors, 2021-03-03

Re: Re: Re: Re: [PATCH] sata_dwc_460ex: Fix missing check in sata_dwc_isr

flat view

From: <hidden>
Date: 2021-03-03 12:54:55
Also in: lkml

On Tue, Mar 2, 2021 at 9:34 AM [off-list ref] wrote:
quoted
quoted
On Mon, Mar 1, 2021 at 1:20 PM [off-list ref] wrote:
quoted
quoted
On Mon, Mar 1, 2021 at 9:44 AM Dinghao Liu [off-list ref] wrote:
...
quoted
quoted
quoted
This issue is reported by my static analysis tool, so I don't have the
vulnerable input currently.
Should we blindly follow everything that some (non-ideal) tool
reports? I don't think so.
For all my experiments with that hardware, I haven't heard about the
issue with NULL pointers. Useless checks make code harder to read and
CPU to waste cycles. It might be maintainers of this driver consider
otherwise, so not my call.
Thanks for your advice. I also checked all use of ata_qc_from_tag() in the
whole kernel and found all of them had return value checks except for the
calls in sata_dwc_isr(), which is odd.
Thanks for this information, it makes sense to me. Perhaps you need to
put this into the commit message to justify the need of the change.
OK. I will fix this and send a new patch soon.

Regards,
Dinghao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help