"git@git.tuxist.de:jan.koester/linux.git" did not exist on "0508019cca6c425a9db79b2b3aa37afba0a5542b"
bcache: Correct return value for sysfs attach errors
If you encounter any errors in bch_cached_dev_attach it will return a negative error code. The variable 'v' which stores the result is unsigned, thus user space sees a very large value returned for bytes written which can cause incorrect user space behavior. Utilize 1 signed variable to use throughout the function to preserve error return capability. Signed-off-by:Tony Asleson <tasleson@redhat.com> Acked-by:
Coly Li <colyli@suse.de> Cc: stable@vger.kernel.org Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
Please sign in to comment