]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
UBI: fix check for "too many bytes"
authorBrian Norris <computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:23:28 +0000 (02:23 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:11 +0000 (19:12 -0400)
commit054cf47d81e14bb77da7cc6eb72f317ac70440ed
treedcb786cd41dd1de7876a4f7b514a77b3cddde5a7
parent256f3466548da7c3761e246dd5e6a0776c01df2a
UBI: fix check for "too many bytes"

[ Upstream commit 299d0c5b27346a77a0777c993372bf8777d4f2e5 ]

The comparison from the previous line seems to have been erroneously
(partially) copied-and-pasted onto the next. The second line should be
checking req.bytes, not req.lnum.

Coverity CID #139400

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
[rw: Fixed comparison]
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/mtd/ubi/cdev.c