diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2017-09-20 12:52:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 01:15:39 +0200 |
commit | bb1fe9ea6371e075d3d1448cd3ff6441d31307be (patch) | |
tree | 637a7811b0c13b8c45cd6ec9336fe119b27dae9e /fs/nfsd/auth.c | |
parent | net: hns3: Fix for DEFAULT_DV when dev doesn't support DCB (diff) | |
download | linux-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