Skip to content

Commit 02f11ee

Browse files
author
David Vrabel
committed
uwb: fix memory leak in uwb_rc_notif()
Don't leak memory in uwb_rc_notif() if certain non-standard events are received. Signed-off-by: David Vrabel <david.vrabel@csr.com>
1 parent fe6e87a commit 02f11ee

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

‎drivers/uwb/neh.c‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ struct uwb_rc_neh *uwb_rc_neh_lookup(struct uwb_rc *rc,
349349
}
350350

351351

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

404-
switch (le16_to_cpu(rceb->wEvent)) {
405-
/* Trap some vendor specific events
406-
*
407-
* FIXME: move this to handling in ptc-est, where we
408-
* register a NULL event handler for these two guys
409-
* using the Intel IDs.
410-
*/
411-
case 0x0103:
412-
dev_info(dev, "FIXME: DEVICE ADD\n");
413-
return;
414-
case 0x0104:
415-
dev_info(dev, "FIXME: DEVICE RM\n");
416-
return;
417-
default:
418-
break;
419-
}
420-
421404
uwbd_event_queue(uwb_evt);
422405
}
423406

0 commit comments

Comments
 (0)