summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2022-02-07 17:38:32 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-04-10 18:15:02 +0300
commit05a32f1aeb05c41dd33d95c060ee5d1b81f70e55 (patch)
tree9844cba6d2e8095ac63a6271cf4066c30aca49ec /include/linux/stackprotector.h
parent69c9887997729cc989849e6cba17fb11093ade1d (diff)
downloadlinux-05a32f1aeb05c41dd33d95c060ee5d1b81f70e55.tar.xz
iio: st_sensors: Drop the protection on _avail functions
The use of a lock there seems pointless. Besides preventing to read these information from userspace while buffers are enabled (which is not supposed to happen), it only protect read accesses over static const values, which are never supposed to be written anyway. Drop these lock calls. Suggested-by: Jonathan Cameron <jic23@kernel.org> Cc: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20220207143840.707510-6-miquel.raynal@bootlin.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions