]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nvmem: Use the same permissions for eeprom as for nvmem
authorJean Delvare <jdelvare@suse.de>
Sun, 28 Jul 2019 16:42:55 +0000 (18:42 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commitaf058156c4fffbb8d8392813f1cad5a59de43721
tree148342807e8ba61907a08a3b9d8b0caaebbcc54c
parent112ebfef18a215fa478ce0b510e7a27d1279a083
nvmem: Use the same permissions for eeprom as for nvmem

BugLink: https://bugs.launchpad.net/bugs/1845266
commit e70d8b287301eb6d7c7761c6171c56af62110ea3 upstream.

The compatibility "eeprom" attribute is currently root-only no
matter what the configuration says. The "nvmem" attribute does
respect the setting of the root_only configuration bit, so do the
same for "eeprom".

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: b6c217ab9be6 ("nvmem: Add backwards compatibility support for older EEPROM drivers.")
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20190728184255.563332e6@endymion
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/nvmem/core.c