hpfs: kstrdup() out of memory handling
authorSanidhya Kashyap <sanidhya.gatech@gmail.com>
Sat, 21 Mar 2015 16:57:50 +0000 (12:57 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 9 Jul 2015 20:35:31 +0000 (13:35 -0700)
commitce657611baf902f14ae559ce4e0787ead6712067
tree43f2a918a0c4d8f7b9c3cc2418953ed0f34a0c70
parentd7b04097c250e6322ba73d3b03337074afeeb314
hpfs: kstrdup() out of memory handling

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>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hpfs/super.c