]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 8 Aug 2016 14:09:27 +0000 (14:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 10:16:23 +0000 (11:16 +0100)
commitbd5fcd18c8c3c032d58d5ffdb2513d136a5450c8
tree3dfc344fb7e14b4765807d70fcf72f3e95fdd189
parent1ca66d6a19d231ee635296e636439e704cde1a47
dm flakey: return -EINVAL on interval bounds error in flakey_ctr()

commit bff7e067ee518f9ed7e1cbc63e4c9e01670d0b71 upstream.

Fix to return error code -EINVAL instead of 0, as is done elsewhere in
this function.

Fixes: e80d1c805a3b ("dm: do not override error code returned from dm_get_device()")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-flakey.c