Skip to content

Commit a0543d6

Browse files
committed
Merge tag 'pm-for-3.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management update from Rafael Wysocki: "Fix for an incorrect error condition check in device PM QoS code that may lead to an Oops from Guennadi Liakhovetski." * tag 'pm-for-3.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM / QoS: fix wrong error-checking condition
2 parents 1d838d7 + a7227a0 commit a0543d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/power/qos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ int dev_pm_qos_add_ancestor_request(struct device *dev,
451451
if (ancestor)
452452
error = dev_pm_qos_add_request(ancestor, req, value);
453453

454-
if (error)
454+
if (error < 0)
455455
req->dev = NULL;
456456

457457
return error;

0 commit comments

Comments
 (0)