Commit 208eec88 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

[PATCH] b43legacy: Fix potential return of uninitialized variable

Using the Coverity checker, Adrian Bunk found that routine b43legacy_start
could return an unitialized variable. This patch fixes the problem.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c899a575
...@@ -3306,7 +3306,7 @@ static int b43legacy_start(struct ieee80211_hw *hw) ...@@ -3306,7 +3306,7 @@ static int b43legacy_start(struct ieee80211_hw *hw)
struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
struct b43legacy_wldev *dev = wl->current_dev; struct b43legacy_wldev *dev = wl->current_dev;
int did_init = 0; int did_init = 0;
int err; int err = 0;
mutex_lock(&wl->mutex); mutex_lock(&wl->mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment