mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
In cxgb(4), in function iwch_reregister_phys_mem(), initialize the
'npages' variable to zero, to avoid using it uninitialized in certain cases. Found by: clang Reviewed by: np MFC after: 1 week
This commit is contained in:
parent
1843e23c48
commit
25982a6e2d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239101
@ -487,7 +487,7 @@ static int iwch_reregister_phys_mem(struct ib_mr *mr,
|
||||
__be64 *page_list = NULL;
|
||||
int shift = 0;
|
||||
u64 total_size;
|
||||
int npages;
|
||||
int npages = 0;
|
||||
int ret;
|
||||
|
||||
CTR3(KTR_IW_CXGB, "%s ib_mr %p ib_pd %p", __FUNCTION__, mr, pd);
|
||||
|
Loading…
Reference in New Issue
Block a user