diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 223d35795350..95eb05abc44a 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -1284,8 +1284,10 @@ static void __orinoco_ev_info(struct net_device *dev, hermes_t *hw) | |||
1284 | /* Read scan data */ | 1284 | /* Read scan data */ |
1285 | err = hermes_bap_pread(hw, IRQ_BAP, (void *) buf, len, | 1285 | err = hermes_bap_pread(hw, IRQ_BAP, (void *) buf, len, |
1286 | infofid, sizeof(info)); | 1286 | infofid, sizeof(info)); |
1287 | if (err) | 1287 | if (err) { |
1288 | kfree(buf); | ||
1288 | break; | 1289 | break; |
1290 | } | ||
1289 | 1291 | ||
1290 | #ifdef ORINOCO_DEBUG | 1292 | #ifdef ORINOCO_DEBUG |
1291 | { | 1293 | { |