diff options
author | Kautuk Consul <consul.kautuk@gmail.com> | 2011-09-20 03:53:12 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-20 23:40:31 +0400 |
commit | 0e6c7f746ea99089fb3263709075c20485a479ae (patch) | |
tree | 3b453455362557f872562ffac17c1d055c1caa2d /COPYING | |
parent | 10d674a82e553cb8a1f41027bb3c3e309b3f6804 (diff) | |
download | linux-0e6c7f746ea99089fb3263709075c20485a479ae.tar.xz |
xhci-mem.c: Check for ring->first_seg != NULL
There are 2 situations wherein the xhci_ring* might not get freed:
- When xhci_ring_alloc() -> xhci_segment_alloc() returns NULL and
we goto the fail: label in xhci_ring_alloc. In this case, the ring
will not get kfreed.
- When the num_segs argument to xhci_ring_alloc is passed as 0 and
we try to free the rung after that.
( This doesn't really happen as of now in the code but we seem to
be entertaining num_segs=0 in xhci_ring_alloc )
This should be backported to kernels as old as 2.6.31.
Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions