Move source tree closer to the 2.6.32.17 mainline
/drivers/scsi/aacraid/commctrl.c
blob:0391d759dfdbd5fb1676f68920f67cec6d8ef37a -> blob:a5b8e7b927019e66bdcad4cb4335a18fd3cb31a3
--- drivers/scsi/aacraid/commctrl.c
+++ drivers/scsi/aacraid/commctrl.c
@@ -655,9 +655,9 @@ static int aac_send_raw_srb(struct aac_d
/* Does this really need to be GFP_DMA? */
p = kmalloc(usg->sg[i].count,GFP_KERNEL|__GFP_DMA);
if(!p) {
- kfree (usg);
- dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n",
+ dprintk((KERN_DEBUG "aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n",
usg->sg[i].count,i,usg->count));
+ kfree(usg);
rcode = -ENOMEM;
goto cleanup;
}