Skip to content

Commit

Permalink
net: incorrect use of init_completion fixup
Browse files Browse the repository at this point in the history
The second init_completion call should be a reinit_completion here.

patch is against 3.18.0 linux-next

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Nicholas Mc Guire authored and David S. Miller committed Dec 26, 2014
1 parent ef8f342 commit 6e4ab36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/brocade/bna/bnad_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ bnad_get_debug_drvinfo(struct bnad *bnad, void *buffer, u32 len)

/* Retrieve flash partition info */
fcomp.comp_status = 0;
init_completion(&fcomp.comp);
reinit_completion(&fcomp.comp);
spin_lock_irqsave(&bnad->bna_lock, flags);
ret = bfa_nw_flash_get_attr(&bnad->bna.flash, &drvinfo->flash_attr,
bnad_cb_completion, &fcomp);
Expand Down

0 comments on commit 6e4ab36

Please sign in to comment.