Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: rpmb: fixes pause retune on all RPMB partitions.
commit e7794c1 upstream. When RPMB was converted to a character device, it added support for multiple RPMB partitions (Commit 9754857 ("mmc: block: Convert RPMB to a character device"). One of the changes in this commit was transforming the variable target_part defined in __mmc_blk_ioctl_cmd into a bitmask. This inadvertently regressed the validation check done in mmc_blk_part_switch_pre() and mmc_blk_part_switch_post(), so let's fix it. Fixes: 9754857 ("mmc: block: Convert RPMB to a character device") Signed-off-by: Jorge Ramirez-Ortiz <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information