hpfs: kstrdup() out of memory handling
authorSanidhya Kashyap <[email protected]>
Sat, 21 Mar 2015 16:57:50 +0000 (12:57 -0400)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
fs/hpfs/super.c