]> git.karo-electronics.de Git - linux-beck.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)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Nov 2016 14:52:07 +0000 (09:52 -0500)
commitbff7e067ee518f9ed7e1cbc63e4c9e01670d0b71
tree67f1f9b74872bce60a1ce0d36f0c0b592355f97b
parent1b1b58f54fdb1d28a85ab9e1b6d3d6b9b37f4ac7
dm flakey: return -EINVAL on interval bounds error in flakey_ctr()

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()")
Cc: stable@vger.kernel.org # 4.3+
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-flakey.c