ia64/xen-unstable

changeset 1397:23b7fa4bf219

bitkeeper revision 1.891.1.30 (40a6a4f4Ppc2ZqsR4fMzaXrsTKi3SQ)

Fix buffer-head memory leak in blkdev backend driver.
author kaf24@scramble.cl.cam.ac.uk
date Sat May 15 23:17:08 2004 +0000 (2004-05-15)
parents 2afbaf9592a6
children 9d1374c809c5
files xenolinux-2.4.26-sparse/arch/xen/drivers/blkif/backend/main.c
line diff
     1.1 --- a/xenolinux-2.4.26-sparse/arch/xen/drivers/blkif/backend/main.c	Sat May 15 14:01:31 2004 +0000
     1.2 +++ b/xenolinux-2.4.26-sparse/arch/xen/drivers/blkif/backend/main.c	Sat May 15 23:17:08 2004 +0000
     1.3 @@ -176,6 +176,8 @@ static void end_block_io_op(struct buffe
     1.4          spin_unlock_irqrestore(&pend_prod_lock, flags);
     1.5          maybe_trigger_io_schedule();
     1.6      }
     1.7 +
     1.8 +    kmem_cache_free(buffer_head_cachep, bh);
     1.9  }
    1.10  
    1.11