Linux-USB Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb()
@ 2019-11-27 15:15 Emiliano Ingrassia
  2019-11-27 15:17 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Emiliano Ingrassia @ 2019-11-27 15:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-usb

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
---
 drivers/usb/core/urb.c | 1 +
 1 file changed, 1 insertion(+)

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);
 	}
 }
--
2.24.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb()
  2019-11-27 15:15 [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb() Emiliano Ingrassia
@ 2019-11-27 15:17 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2019-11-27 15:17 UTC (permalink / raw)
  To: Emiliano Ingrassia; +Cc: linux-usb

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27 15:15 [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb() Emiliano Ingrassia
2019-11-27 15:17 ` Greg Kroah-Hartman

Linux-USB Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-usb/0 linux-usb/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-usb linux-usb/ https://lore.kernel.org/linux-usb \
		linux-usb@vger.kernel.org
	public-inbox-index linux-usb

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-usb


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git