Thread (7 messages) 7 messages, 4 authors, 2020-07-09

Re: [PATCH v2] usb: mtu3: Fix NULL pointer dereferences

From: Markus Elfring <hidden>
Date: 2020-06-30 10:47:23
Also in: kernel-janitors, linux-mediatek, linux-usb, lkml

Some pointers are dereferenced before successful checks.
I propose to reconsider and improve also this change description.

* Would a null pointer dereference be possible only with the variables “mep”
  and “mreq” in the implementation of the function “mtu3_gadget_dequeue”?
  (Can it make sense to split the patch according to this detail?)

* How do you think about to convert any more variable initialisations
  to later assignments?

* Will it become helpful to add the tag “Fixes” to the commit message?


…
---
v2: nothing changed, but abandon another patch
Are there chances to take any previous patch review comments better into account
(besides the shown reduction of update steps)?

---
 drivers/usb/mtu3/mtu3_gadget.c | 25 ++++++++++++++++++-------
I suggest to replace the triple dashes before this diffstat by a blank line.

Regards,
Markus

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help