From 07a46ed27dc6344de831a450df82336270a157a9 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Fri, 12 Dec 2014 16:58:22 -0800 Subject: [PATCH] shmdt: use i_size_read() instead of ->i_size 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 Cc: Manfred Spraul Cc: Davidlohr Bueso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed