Thread (5 messages) 5 messages, 2 authors, 2021-10-18

Re: [PATCH 1/2] HID: u2fzero: explicitly check for errors

From: Andrej Shadura <hidden>
Date: 2021-10-18 12:09:53
Also in: linux-usb

On 18/10/2021 14:06, Andrej Shadura wrote:
On 18/10/2021 08:56, Greg KH wrote:
quoted
On Mon, Oct 18, 2021 at 08:47:59AM +0200, Andrej Shadura wrote:
quoted
The previous commit fixed handling of incomplete packets but broke error
handling: offsetof returns an unsigned value (size_t), but when compared
against the signed return value, the return value is interpreted as if
it were unsigned, so negative return values are never less than the
offset.

Fixes: 22d65765f211c("HID: u2fzero: ignore incomplete packets without 
data")
Fixes: 42337b9d4d958("HID: add driver for U2F Zero built-in LED and 
RNG")
Nit, you need a ' ' before the '(' character here, and you only need 12
digits of the sha1.  It should look like:
    Fixes: 22d65765f211 ("HID: u2fzero: ignore incomplete packets 
without data")
Thanks, is there a script or something to help generate those? (I’m 
surprised --fixup cannot generate them.)
Replying to myself, apparently the answer to this is now in the 
"submitting patches" document.

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