Commit 708218b0 authored by Pavel Roskin's avatar Pavel Roskin Committed by Jeff Garzik

[PATCH] orinoco: Fix memory leak on error in processing hostscan frames.

Signed-off-by: default avatarPavel Roskin <proski@gnu.org>

diff-tree ca955293cdfd3139e150d3b4fed3922a7eb651fb (from cb289b9f9b2a0f3ae7070a008f22e383b37526ee)
Author: Pavel Roskin <proski@gnu.org>
Date:   Thu Sep 1 19:08:00 2005 -0400

    Fix memory leak on error in processing hostscan frames.
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent acf73a85
...@@ -1284,8 +1284,10 @@ static void __orinoco_ev_info(struct net_device *dev, hermes_t *hw) ...@@ -1284,8 +1284,10 @@ static void __orinoco_ev_info(struct net_device *dev, hermes_t *hw)
/* Read scan data */ /* Read scan data */
err = hermes_bap_pread(hw, IRQ_BAP, (void *) buf, len, err = hermes_bap_pread(hw, IRQ_BAP, (void *) buf, len,
infofid, sizeof(info)); infofid, sizeof(info));
if (err) if (err) {
kfree(buf);
break; break;
}
#ifdef ORINOCO_DEBUG #ifdef ORINOCO_DEBUG
{ {
......
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