From: Greg Kroah-Hartman Date: Tue, 23 May 2017 13:02:22 +0000 (+0200) Subject: fix up queue-3.18/usbvision-fix-null-deref-at-probe.patch to build properly X-Git-Tag: v3.18.55~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a429058499cdef391e7ce04dd8f8077c0f494c2c;p=thirdparty%2Fkernel%2Fstable-queue.git fix up queue-3.18/usbvision-fix-null-deref-at-probe.patch to build properly --- diff --git a/queue-3.18/usbvision-fix-null-deref-at-probe.patch b/queue-3.18/usbvision-fix-null-deref-at-probe.patch index 451396ab0b5..add77ac8e43 100644 --- a/queue-3.18/usbvision-fix-null-deref-at-probe.patch +++ b/queue-3.18/usbvision-fix-null-deref-at-probe.patch @@ -34,8 +34,8 @@ Signed-off-by: Greg Kroah-Hartman + u16 tmp; + + if (uif->altsetting[i].desc.bNumEndpoints < 2) { -+ ret = -ENODEV; -+ goto err_pkt; ++ usbvision_release(usbvision); ++ return -ENODEV; + } + + tmp = le16_to_cpu(uif->altsetting[i].endpoint[1].desc.