Patch "dm flakey: return -EINVAL on interval bounds error in flakey_ctr()" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
dm-flakey-return-einval-on-interval-bounds-error-in-flakey_ctr.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
bff7e067ee518f9ed7e1cbc63e4c9e01670d0b71Mon Sep 17 00:00:00 2001
From: Wei Yongjun <[email protected]>
Date: Mon, 8 Aug 2016 14:09:27 +0000
Subject: dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
From: Wei Yongjun <[email protected]>
commit bff7e067ee518f9ed7e1cbc63e4c9e01670d0b71 upstream.
Fix to return error code -EINVAL instead of 0, as is done elsewhere in this function.
--- drivers/md/dm-flakey.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/md/dm-flakey.c +2 -0
@@ -200,11 +200,13 @@ static int flakey_ctr(struct dm_target *if (!(fc->up_interval + fc->down_interval)) { ti->error ="Total (up + down) interval is zero" ; + r = -EINVAL ; goto bad; }if (fc->up_interval + fc->down_interval < fc->up_interval) { ti->error ="Interval overflow" ; + r = -EINVAL ; goto bad; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/dm-flakey-return-einval-on-interval-bounds-error-in-flakey_ctr.patch