Skip to contentSkip to conversation

Patch "iio: light: us5182d: Add missing error code assignment before test" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Oct 28, 2016

Subsystems (2)
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

iio: light: us5182d: Add missing error code assignment before test

to the 4.8-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:
iio-light-us5182d-add-missing-error-code-assignment-before-test.patch
and it can be found in the queue-4.8 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 281269f8a0b00f5c95de5158e8595ed51bdb4b0a Mon Sep 17 00:00:00 2001

From: Christophe JAILLET <[email protected]>
Date: Wed, 10 Aug 2016 07:18:16 +0200
Subject: iio: light: us5182d: Add missing error code assignment before test

From: Christophe JAILLET <[email protected]>

commit 281269f8a0b00f5c95de5158e8595ed51bdb4b0a upstream.

It is likely that checking the result of 'pm_runtime_set_active' is expected here.

Fixes f0e5f57d3ac2 ("iio: light: us8152d: Add power management support")
---
 drivers/iio/light/us5182d.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/us5182d.c +1 -1
@@ -894,7 +894,7 @@ static int us5182d_probe(struct i2c_clie
 		goto out_err;
 
 	if (data->default_continuous) {
-		pm_runtime_set_active(&client->dev);
+		ret = pm_runtime_set_active(&client->dev);
 		if (ret < 0)
 			goto out_err;
 	}

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

queue-4.8/rt2x00usb-fix-error-return-code.patch queue-4.8/iio-light-us5182d-add-missing-error-code-assignment-before-test.patch