aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <koct9i@gmail.com>2014-08-06 16:06:32 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:18 -0700
commit66ee4b8887ec5ce04bae3e840d206db7b7ad34d1 (patch)
treeca202430d326aaca6ad5f11e7296ccf1956aa961 /firmware
parentinclude/linux/mmdebug.h: add VM_WARN_ONCE() (diff)
downloadlinux-dev-66ee4b8887ec5ce04bae3e840d206db7b7ad34d1.tar.xz
linux-dev-66ee4b8887ec5ce04bae3e840d206db7b7ad34d1.zip
shmem: fix double uncharge in __shmem_file_setup()
If __shmem_file_setup() fails on struct file allocation it uncharges memory commitment twice: first by shmem_unacct_size() and second time implicitly in shmem_evict_inode() when it kills the newly created inode. This patch removes shmem_unacct_size() from error path if the inode was already there. Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com> Acked-by: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions