diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-06-03 11:39:35 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-06 19:32:58 -0400 |
commit | 249f06561fc333581e48e6d388a56e3d100d23b6 (patch) | |
tree | 12c7be8d264f83ef47e3f9e1ec5926a120fd7eb2 /Documentation | |
parent | ca920f5b67f1b798a1f86c675ea441b295bf8464 (diff) |
IB/srp: Always initialize use_fast_reg and use_fmr
Avoid that mapping fails due to use_fast_reg != 0 or use_fmr != 0
if both member variables should be zero (if never_register == 1 or
if neither FMR nor FR is supported). Remove an initialization that
became superfluous due to changing a kmalloc() into a kzalloc()
call.
Fixes: 509c5f33f4f6 ("IB/srp: Prevent mapping failures")
Cc: Sagi Grimberg <sai@grimberg.m>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions