summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/auth.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2017-09-20 12:52:53 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-21 01:15:39 +0200
commitbb1fe9ea6371e075d3d1448cd3ff6441d31307be (patch)
tree637a7811b0c13b8c45cd6ec9336fe119b27dae9e /fs/nfsd/auth.c
parentnet: hns3: Fix for DEFAULT_DV when dev doesn't support DCB (diff)
downloadlinux-bb1fe9ea6371e075d3d1448cd3ff6441d31307be.tar.xz
linux-bb1fe9ea6371e075d3d1448cd3ff6441d31307be.zip
net: hns3: Fix for not setting rx private buffer size to zero
When rx private buffer is disabled, there may be some case that the rx private buffer is not set to zero, which may cause buffer allocation process to fail. This patch fixes this problem by setting priv->enable to 0 and priv->buf_size to zero when rx private buffer is disabled. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/nfsd/auth.c')
0 files changed, 0 insertions, 0 deletions