drivers/net/wireless/b43legacy/main.c: initialize the correct return value
PATCH 1/1 drivers/net/wireless/b43legacy/main.c: initialize the correct return value
From: Adrian Bunk <[email protected]>
Initialize "err" in drivers/net/wireless/b43legacy/main.c::b43legacy_start() in case of returning an uninitialized value.
Signed-off-by WANG Cong <[email protected]>
Signed-off-by Michael Buesch <[email protected]>
--- drivers/net/wireless/b43/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/b43legacy/main.c +1 -1
@@ -3306,7 +3306,7 @@ static int b43legacy_start(struct ieee80struct b43legacy_wl *wl =hw_to_b43legacy_wl (hw);struct b43legacy_wldev *dev = wl->current_dev;int did_init =0 ; -int err; +int err =0 ;mutex_lock (&wl->mutex);
-------------------------------------------------------
Signature · 1 line
Greetings Michael.
Quoted 1 line · Michael Buesch
From: Adrian Bunk <[email protected]>
Adrian suggested to change this tag. So maybe the following is right.
Reported-by Adrian Bunk <[email protected]>
<snip>
Thanks!
Signature · 1 line
May the Source Be With You.
Quoted 7 lines · Michael Buesch
From: Adrian Bunk <[email protected]>
Initialize "err" in drivers/net/wireless/b43legacy/main.c::b43legacy_start() in case of returning an uninitialized value.
Signed-off-by WANG Cong <[email protected]>Signed-off-by Michael Buesch <[email protected]>
Signed-off-by Larry Finger <[email protected]>
Quoted 22 lines
--- drivers/net/wireless/b43/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6.23-mm1/drivers/net/wireless/b43legacy/main.c
===================================================================drivers/net/wireless/b43legacy/main.c +1
-2@@ -3306,7 +3306,7 @@ static int b43legacy_start(struct ieee80struct b43legacy_wl *wl =hw_to_b43legacy_wl (hw);struct b43legacy_wldev *dev = wl->current_dev;int did_init =0 ; -int err; +int err =0 ;mutex_lock (&wl->mutex); -------------------------------------------------------