From: Sanidhya Kashyap Date: Thu, 16 Apr 2015 19:48:26 +0000 (-0700) Subject: affs: kstrdup() memory handling X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f33d0bec999a4f2b5c3f9380361b88ce6f6ab0;p=pandora-kernel.git 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 Cc: Taesoo kim Cc: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed