[PATCH] affs: kstrdup() memory handling

2015-03-21 Thread Sanidhya Kashyap
There is a possibility of kstrdup() failure upon memory pressure. Therefore, returning ENOMEM even for new_opts. Signed-off-by: Sanidhya Kashyap --- fs/affs/super.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/affs/super.c b/fs/affs/super.c index 4cf0e91..f4d0d36 100644 ---

[PATCH] affs: kstrdup() memory handling

2015-03-21 Thread Sanidhya Kashyap
There is a possibility of kstrdup() failure upon memory pressure. Therefore, returning ENOMEM even for new_opts. Signed-off-by: Sanidhya Kashyap sanidhya.gat...@gmail.com --- fs/affs/super.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/affs/super.c b/fs/affs/super.c index