hpfs: kstrdup() out of memory handling

commit ce657611ba upstream.

There is a possibility of nothing being allocated to the new_opts in
case of memory pressure, therefore return ENOMEM for such case.

Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@gmail.com>
Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Sanidhya Kashyap 2015-03-21 12:57:50 -04:00 • committed by Luis Henriques
commit 5bbb9aca6b