Skip to contentSkip to conversation

Patch "usb: phy: omap-otg: fix uninitialized pointer" has been added to the 4.3-stable tree

PATCH [email protected] 1 participant 1 message Dec 7, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

usb: phy: omap-otg: fix uninitialized pointer

to the 4.3-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
usb-phy-omap-otg-fix-uninitialized-pointer.patch
and it can be found in the queue-4.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 2c2025b41aeff57963f9ae2dd909fea704c625ab Mon Sep 17 00:00:00 2001

From: Aaro Koskinen <[email protected]>
Date: Tue, 27 Oct 2015 23:26:33 +0200
Subject: usb: phy: omap-otg: fix uninitialized pointer

From: Aaro Koskinen <[email protected]>

commit 2c2025b41aeff57963f9ae2dd909fea704c625ab upstream.

otg_dev->extcon was referenced before otg_dev was initialized. Fix.

Fixes a2fd2423240f ("usb: phy: omap-otg: Replace deprecated API of extcon")
---
 drivers/usb/phy/phy-omap-otg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/phy/phy-omap-otg.c +1 -1
@@ -105,7 +105,6 @@ static int omap_otg_probe(struct platfor
 	extcon = extcon_get_extcon_dev(config->extcon);
 	if (!extcon)
 		return -EPROBE_DEFER;
-	otg_dev->extcon = extcon;
 
 	otg_dev = devm_kzalloc(&pdev->dev, sizeof(*otg_dev), GFP_KERNEL);
 	if (!otg_dev)
@@ -115,6 +114,7 @@ static int omap_otg_probe(struct platfor
 	if (IS_ERR(otg_dev->base))
 		return PTR_ERR(otg_dev->base);
 
+	otg_dev->extcon = extcon;
 	otg_dev->id_nb.notifier_call = omap_otg_id_notifier;
 	otg_dev->vbus_nb.notifier_call = omap_otg_vbus_notifier;
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.3/usb-phy-omap-otg-fix-uninitialized-pointer.patch