mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
qla2x00t-32gbit: Fix different size DMA Alloc/Unmap
Fix the following complaint:
qla2xxx 0000:05:00.0: DMA-API: device driver frees DMA memory
with different size [device address=0x00000006198b0000] [map size=32784 bytes]
[unmap size=8208 bytes]
RIP: 0010:check_unmap+0x7a2/0x1750
Call Trace:
debug_dma_free_coherent+0x1b5/0x2d5
dma_free_attrs+0x7f/0x140
qla24xx_sp_unmap+0x1e2/0x610 [qla2xxx]
qla24xx_async_gnnft_done+0x9c6/0x17d0 [qla2xxx]
qla2x00_do_work+0x514/0x2200 [qla2xxx]
[ commit d376dbda187317d06d3a2d495b43a7983e4a3250 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4144,7 +4144,7 @@ int qla24xx_async_gpnft(scsi_qla_host_t *vha, u8 fc4_type, srb_t *sp)
|
||||
rspsz,
|
||||
&sp->u.iocb_cmd.u.ctarg.rsp_dma,
|
||||
GFP_KERNEL);
|
||||
sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = sizeof(struct ct_sns_pkt);
|
||||
sp->u.iocb_cmd.u.ctarg.rsp_allocated_size = rspsz;
|
||||
if (!sp->u.iocb_cmd.u.ctarg.rsp) {
|
||||
ql_log(ql_log_warn, vha, 0xffff,
|
||||
"Failed to allocate ct_sns request.\n");
|
||||
|
||||
Reference in New Issue
Block a user