nfsd: properly handle embedded newlines in fault_injection input
authorJeff Layton <jlayton@primarydata.com>
Wed, 18 Jun 2014 19:00:19 +0000 (15:00 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 23 Jun 2014 15:31:38 +0000 (11:31 -0400)
Currently rpc_pton() fails to handle the case where you echo an address
into the file, as it barfs on the newline. Ensure that we NULL out the
first occurrence of any newline.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/fault_inject.c

Simple merge