summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-lcpower.c
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>2018-06-06 12:13:29 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-06-22 00:55:16 +0200
commit0cd8116f172eed018907303dbff5c112690eeb91 (patch)
treefe0e8f01fb5e02d158fa26a64beacb764de8797f /drivers/hid/hid-lcpower.c
parent5fdfc3dbad099281bf027a353d5786c09408a8e5 (diff)
mtd: cfi_cmdset_0002: Fix unlocking requests crossing a chip boudary
The "sector is in requested range" test used to determine whether sectors should be re-locked or not is done on a variable that is reset everytime we cross a chip boundary, which can lead to some blocks being re-locked while the caller expect them to be unlocked. Fix the check to make sure this cannot happen. Fixes: 1648eaaa1575 ("mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking") Cc: stable@vger.kernel.org Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/hid/hid-lcpower.c')
0 files changed, 0 insertions, 0 deletions