commit | 3fae2a9e994b41603dbe1a5f32503cf558cf77f7 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyj.lk@gmail.com> | Mon Aug 08 14:09:27 2016 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 06 10:40:15 2017 +0100 |
tree | 31885b7b7b2a72088b6fcabb1d09cfeb34dcee4e | |
parent | e74fb822281ecd034a381b0c3dd1b9d63caf1f25 [diff] |
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>