Commit 8c8373b4 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix leak in cpqfc

parent c3c4d74c
...@@ -686,7 +686,7 @@ int cpqfcTS_ioctl( Scsi_Device *ScsiDev, int Cmnd, void *arg) ...@@ -686,7 +686,7 @@ int cpqfcTS_ioctl( Scsi_Device *ScsiDev, int Cmnd, void *arg)
if( (vendor_cmd->rw_flag == VENDOR_READ_OPCODE) && if( (vendor_cmd->rw_flag == VENDOR_READ_OPCODE) &&
vendor_cmd->len ) vendor_cmd->len )
if( copy_to_user( vendor_cmd->bufp, buf, vendor_cmd->len)) if( copy_to_user( vendor_cmd->bufp, buf, vendor_cmd->len))
return( -EFAULT); result = -EFAULT;
if( buf) if( buf)
kfree( buf); kfree( buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment