]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mtd: fix mtd_oobavail() incoherent returned value
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 18 Nov 2018 20:18:30 +0000 (21:18 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:19 +0000 (14:22 -0300)
commit1ee42a4093ec30364a0532ec34f8d33d33e96548
tree39d29988fb09b0174630731d15fce3bc14db4632
parentefc6a66942a7e75ea26e935a035a0e16ab5fc2e3
mtd: fix mtd_oobavail() incoherent returned value

BugLink: https://bugs.launchpad.net/bugs/1857158
[ Upstream commit 4348433d8c0234f44adb6e12112e69343f50f0c5 ]

mtd_oobavail() returns either mtd->oovabail or mtd->oobsize. Both
values are unsigned 32-bit entities, so there is no reason to pretend
returning a signed one.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/linux/mtd/mtd.h