Commit 6fd59a83 authored by Committed by Linus Torvalds
scatterlist: don't BUG when we can trivially return a proper error.
There is absolutely no reason to crash the kernel when we have a perfectly good return value already available to use for conveying failure status. Let's return an error code instead of crashing the kernel: that sounds like a much better plan. [firstname.lastname@example.org: s/E2BIG/EINVAL/] Signed-off-by: Nick Bowler <email@example.com> Cc: Maxim Levitsky <firstname.lastname@example.org> Cc: Tejun Heo <email@example.com> Cc: Jens Axboe <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
Showing with 2 additions and 1 deletion