Commit 5c1c6931 authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman

[PATCH] hc_sl811 build and memory leak

It needs s/malloc.h/slab.h/ .
It also forgets to free some memory on an error exit patch.
Patch for 2.5.39 follows.
parent 1e4fece8
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/malloc.h> #include <linux/slab.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
...@@ -1158,6 +1158,7 @@ static hci_t *__devinit hc_alloc_hci (void) ...@@ -1158,6 +1158,7 @@ static hci_t *__devinit hc_alloc_hci (void)
bus = usb_alloc_bus (&hci_device_operations); bus = usb_alloc_bus (&hci_device_operations);
if (!bus) { if (!bus) {
kfree (hci); kfree (hci);
kfree (ps);
return NULL; return NULL;
} }
......
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