Revision 07a46ed27dc6344de831a450df82336270a157a9 authored by Dave Hansen on 13 December 2014, 00:58:22 UTC, committed by Linus Torvalds on 13 December 2014, 20:42:52 UTC
Andrew Morton noted

	http://lkml.kernel.org/r/20141104142027.a7a0d010772d84560b445f59@linux-foundation.org

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 <dave.hansen@linux.intel.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d3c9790
History
File Mode Size
.gitignore -rw-r--r-- 12 bytes
Makefile -rw-r--r-- 270 bytes
hid-example.c -rw-r--r-- 3.8 KB

back to top