Re: [PATCH] pata_octeon_cf: use devm_kzalloc() to allocate cf_port

2014-04-14 Thread Tejun Heo
On Mon, Apr 14, 2014 at 06:28:37PM +0200, Bartlomiej Zolnierkiewicz wrote: > As a nice side effect this fixes the cf_port leak on > dma_coerce_mask_and_coherent() or ata_host_activate() > failure. > > Cc: Ralf Baechle > Cc: David Daney > Suggested-by: Guenter Roeck > Signed-off-by: Bartlomiej Z

[PATCH] pata_octeon_cf: use devm_kzalloc() to allocate cf_port

2014-04-14 Thread Bartlomiej Zolnierkiewicz
As a nice side effect this fixes the cf_port leak on dma_coerce_mask_and_coherent() or ata_host_activate() failure. Cc: Ralf Baechle Cc: David Daney Suggested-by: Guenter Roeck Signed-off-by: Bartlomiej Zolnierkiewicz --- Compile tested only. drivers/ata/pata_octeon_cf.c | 50 +