Skip to content

Commit

Permalink
Staging: bcm: signedness bug in InitCardAndDownloadFirmware()
Browse files Browse the repository at this point in the history
status is used to store negative error codes throughout.  The only place
where this is a runtime bug is if create_worker_threads() fails.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Nov 16, 2010
1 parent f05321c commit 2e31613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/bcm/Misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ int run_card_proc(PMINI_ADAPTER ps_adapter )
int InitCardAndDownloadFirmware(PMINI_ADAPTER ps_adapter)
{

UINT status = STATUS_SUCCESS;
int status;
UINT value = 0;
/*
* Create the threads first and then download the
Expand Down

0 comments on commit 2e31613

Please sign in to comment.