Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ef73dbd authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman
Browse files

usb-anchor: Ensure poisened gets initialized to 0



And do so in a way which ensures that any fields added in the future will
also get properly zero-ed.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarOliver Neukum <oliver@neukum.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a72e2e5c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1214,6 +1214,7 @@ struct usb_anchor {

static inline void init_usb_anchor(struct usb_anchor *anchor)
{
	memset(anchor, 0, sizeof(*anchor));
	INIT_LIST_HEAD(&anchor->urb_list);
	init_waitqueue_head(&anchor->wait);
	spin_lock_init(&anchor->lock);