aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDave Hansen <[email protected]>2014-12-12 16:58:22 -0800
committerLinus Torvalds <[email protected]>2014-12-13 12:42:52 -0800
commit07a46ed27dc6344de831a450df82336270a157a9 (patch)
tree01d7b8df9f8419878ab9e6ff0678ee26ae20d00c /lib/memory-notifier-error-inject.c
parentd3c97900b427b8d5a476fdfe484267f09df418d6 (diff)
shmdt: use i_size_read() instead of ->i_size
Andrew Morton noted http://lkml.kernel.org/r/[email protected] that the shmdt uses inode->i_size outside of i_mutex being held. There is one more case in shm.c in shm_destroy(). This converts both users over to use i_size_read(). Signed-off-by: Dave Hansen <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: Davidlohr Bueso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions