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

Commit 584958c3 authored by Matthieu CASTET's avatar Matthieu CASTET Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: UEAGLE : null pointer dereference fix



this patch fix potential null pointer dereference.  Found by the
Coverity checker.

Signed-off-by: default avatarDuncan Sands <baldrick@free.fr>
Signed-off-by: default avatarMatthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 22fcceb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1673,7 +1673,7 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,

	sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL);
	if (!sc) {
		uea_err(INS_TO_USBDEV(sc), "uea_init: not enough memory !\n");
		uea_err(usb, "uea_init: not enough memory !\n");
		return -ENOMEM;
	}