Messages in this thread Patch in this message | | | Date | Thu, 18 Jul 2002 21:19:36 -0400 | From | Doug Ledford <> | Subject | Re: 2.5.26 : drivers/scsi/BusLogic.c |
| |
There was a bug in the patch I sent through last. This patch should be applied on top of the last one to solve a memory leak on unloading of the module.
-- Doug Ledford <dledford@redhat.com> 919-754-3700 x44233 Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606
# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.740 -> 1.741 # drivers/scsi/BusLogic.c 1.7 -> 1.8 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/07/18 dledford@perf50.perf.redhat.com 1.741 # BusLogic.c: # DMA Mapping API update, part 2 # -------------------------------------------- # diff -Nru a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c --- a/drivers/scsi/BusLogic.c Thu Jul 18 21:18:46 2002 +++ b/drivers/scsi/BusLogic.c Thu Jul 18 21:18:46 2002 @@ -300,6 +300,10 @@ Last_CCB = CCB; } } + if (Last_CCB) + pci_free_consistent(HostAdapter->PCI_Device, + Last_CCB->AllocationGroupSize, Last_CCB, + Last_CCB->AllocationGroupHead); } | |