Fix a memory leak in the kernel case in scsi_command_string().

Submitted by:	Kashyap Desai <Kashyap.Desai@lsi.com>
MFC after:	3 days
This commit is contained in:
Kenneth D. Merry 2012-06-06 17:04:56 +00:00
parent 8124c91fde
commit d36f5410dd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236689

View File

@ -3059,6 +3059,10 @@ scsi_command_string(struct cam_device *device, struct ccb_scsiio *csio,
sizeof(cdb_str)));
}
#ifdef _KERNEL
xpt_free_ccb((union ccb *)cgd);
#endif
return(0);
}