nfs: check hostname in nfs_get_client
authorPeng Tao <tao.peng@primarydata.com>
Tue, 8 Jul 2014 03:45:48 +0000 (11:45 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 8 Jul 2014 18:30:03 +0000 (14:30 -0400)
commit31434f496abb9f3410b10f541462fe58613dd3ad
tree29c03f1c95c2db782707df4fa9d834dd9a90acde
parenta363e32e9459a0c5b199db9afa4b7dc143106012
nfs: check hostname in nfs_get_client

We reference cl_hostname in many places. Add a check to make
sure it exists.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/client.c