Skip to content

Commit

Permalink
uwb: fix memory leak in uwb_rc_notif()
Browse files Browse the repository at this point in the history
Don't leak memory in uwb_rc_notif() if certain non-standard events are
received.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
  • Loading branch information
David Vrabel committed Dec 12, 2008
1 parent fe6e87a commit 02f11ee
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions drivers/uwb/neh.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ struct uwb_rc_neh *uwb_rc_neh_lookup(struct uwb_rc *rc,
}


/**
/*
* Process notifications coming from the radio control interface
*
* @rc: UWB Radio Control Interface descriptor
Expand Down Expand Up @@ -401,23 +401,6 @@ void uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size)
uwb_evt->notif.size = size;
uwb_evt->notif.rceb = rceb;

switch (le16_to_cpu(rceb->wEvent)) {
/* Trap some vendor specific events
*
* FIXME: move this to handling in ptc-est, where we
* register a NULL event handler for these two guys
* using the Intel IDs.
*/
case 0x0103:
dev_info(dev, "FIXME: DEVICE ADD\n");
return;
case 0x0104:
dev_info(dev, "FIXME: DEVICE RM\n");
return;
default:
break;
}

uwbd_event_queue(uwb_evt);
}

Expand Down

0 comments on commit 02f11ee

Please sign in to comment.