summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>2018-06-06 13:13:28 +0300
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-06-22 01:35:31 +0300
commit5fdfc3dbad099281bf027a353d5786c09408a8e5 (patch)
tree32530a1430fc449d292f8e3f91350286a9469a71 /include/linux/stackprotector.h
parentf93aa8c4de307069c270b2d81741961162bead6c (diff)
downloadlinux-5fdfc3dbad099281bf027a353d5786c09408a8e5.tar.xz
mtd: cfi_cmdset_0002: fix SEGV unlocking multiple chips
cfi_ppb_unlock() tries to relock all sectors that were locked before unlocking the whole chip. This locking used the chip start address + the FULL offset from the first flash chip, thereby forming an illegal address. Fix that by using the chip offset(adr). 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 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions