summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-09-21 20:55:04 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 09:10:33 -0800
commitc4b16f7f222bb71d44a94a75f291d3fc2c9292b5 (patch)
treea3eb1de3e7b971455bc47f1aa97edfe357ef3e29 /fs
parent1ae8bbc2af2d188dcce1c8d32831ce6bccbaecde (diff)
downloadlwn-c4b16f7f222bb71d44a94a75f291d3fc2c9292b5.tar.gz
lwn-c4b16f7f222bb71d44a94a75f291d3fc2c9292b5.zip
PM / Suspend: Off by one in pm_suspend()
commit 528f7ce6e439edeac38f6b3f8561f1be129b5e91 upstream. In enter_state() we use "state" as an offset for the pm_states[] array. The pm_states[] array only has PM_SUSPEND_MAX elements so this test is off by one. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions