UBI: fix check for "too many bytes"
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: NBrian Norris <computersforpeace@gmail.com> [rw: Fixed comparison] Signed-off-by: NRichard Weinberger <richard@nod.at>
Showing
想要评论请 注册 或 登录