diff mbox series

usb: core: urb: explicitly initialize urb_list field in usb_init_urb()

Message ID 20191127151502.GA26047@ingrassia.epigenesys.com (mailing list archive)
State Mainlined
Commit 1cd17f7f0def31e3695501c4f86cd3faf8489840
Headers show
Series usb: core: urb: explicitly initialize urb_list field in usb_init_urb() | expand

Commit Message

Emiliano Ingrassia Nov. 27, 2019, 3:15 p.m. UTC
Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
---
 drivers/usb/core/urb.c | 1 +
 1 file changed, 1 insertion(+)

--
2.24.0

Comments

Greg KH Nov. 27, 2019, 3:17 p.m. UTC | #1
On Wed, Nov 27, 2019 at 04:15:02PM +0100, Emiliano Ingrassia wrote:
> Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>

I can not take patches without any changelog text, sorry.

ALways describe _why_ you are making this change, not what the change
it.

thanks,

greg k-h
diff mbox series

Patch

diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index 0eab79f82ce4..da923ec17612 100644
--- a/drivers/usb/core/urb.c
+++ b/drivers/usb/core/urb.c
@@ -45,6 +45,7 @@  void usb_init_urb(struct urb *urb)
 	if (urb) {
 		memset(urb, 0, sizeof(*urb));
 		kref_init(&urb->kref);
+		INIT_LIST_HEAD(&urb->urb_list);
 		INIT_LIST_HEAD(&urb->anchor_list);
 	}
 }