]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:15 +0000 (10:40 +0100)
commit3fae2a9e994b41603dbe1a5f32503cf558cf77f7
tree31885b7b7b2a72088b6fcabb1d09cfeb34dcee4e
parente74fb822281ecd034a381b0c3dd1b9d63caf1f25
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