summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-exynos.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2024-10-30 14:02:53 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:41:03 +0100
commitd60e418834b931f75c5e90b76c01622e9b555599 (patch)
tree86d103c4db0b9282dda9bb308e625ac8ce6c79fb /drivers/pci/controller/dwc/pci-exynos.c
parentf25a9f1df1f6738acf1fa05595fb6060a2c08ff1 (diff)
nvmem: core: Check read_only flag for force_ro in bin_attr_nvmem_write()
commit da9596955c05966768364ab1cad2f43fcddc6f06 upstream. The bin_attr_nvmem_write() must check the read_only flag and block writes on read-only devices, now that a nvmem device can be switched between read-write and read-only mode at runtime using the force_ro attribute. Add the missing check. Fixes: 9d7eb234ac7a ("nvmem: core: Implement force_ro sysfs attribute") Cc: Stable@vger.kernel.org Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20241030140253.40445-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-exynos.c')
0 files changed, 0 insertions, 0 deletions