Skip to contentSkip to conversation

Staging: bcm: signedness bug in

PATCH New Dan Carpenter 1 participant 1 message Nov 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: bcm: signedness bug in

status is used to store negative error codes throughout. The only place where this is a runtime bug is if create_worker_threads() fails.

drivers/staging/bcm/Misc.c +1 -1
index 1bb6a1d..440b9cd 100644
@@ -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