]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
affs: kstrdup() memory handling
authorSanidhya Kashyap <sanidhya.gatech@gmail.com>
Thu, 16 Apr 2015 19:48:26 +0000 (12:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:09 +0000 (09:04 -0400)
commitc8f33d0bec999a4f2b5c3f9380361b88ce6f6ab0
tree7f5ff253261b35a918b9223e21ac9cf5cdc3814c
parent79bda4d510f80e403ef66fee852f8ccb17308581
affs: kstrdup() memory handling

There is a possibility of kstrdup() failure upon memory pressure.
Therefore, returning ENOMEM even for new_opts.

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@gmail.com>
Cc: Taesoo kim <taesoo@gatech.edu>
Cc: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/super.c