diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2007-10-24 02:45:35 -0400 |
---|---|---|
committer | Jens Axboe <axboe@carl.home.kernel.dk> | 2007-10-24 02:45:35 -0400 |
commit | de58d942924d431c1c2144ece35b0b9aceadaf2c (patch) | |
tree | 09a3e86df54b5bf5a4cddaa20f370d612e4975d1 /drivers | |
parent | 5e2a06489e4d4d85ca4ca20af23f213e95c2fbeb (diff) |
sg: add missing sg_init_table calls to zfcp
kernel BUG at include/linux/scatterlist.h:50!
illegal operation: 0001 [#1]
[...]
Call Trace:
([<000000000026f184>] zfcp_ns_gid_pn_request+0x4c/0x2a0)
[<0000000000276dd4>] zfcp_erp_strategy_do_action+0x1410/0x1938
[<0000000000278412>] zfcp_erp_thread+0x4fa/0x1430
[<000000000001990a>] kernel_thread_starter+0x6/0xc
[<0000000000019904>] kernel_thread_starter+0x0/0xc
Cc: Swen Schillig <swen@vnet.ibm.com>
Cc: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/scsi/zfcp_aux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index fd5d0c1570df..d9e7be979760 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c | |||
@@ -1518,6 +1518,8 @@ zfcp_gid_pn_buffers_alloc(struct zfcp_gid_pn_data **gid_pn, mempool_t *pool) | |||
1518 | return -ENOMEM; | 1518 | return -ENOMEM; |
1519 | 1519 | ||
1520 | memset(data, 0, sizeof(*data)); | 1520 | memset(data, 0, sizeof(*data)); |
1521 | sg_init_table(&data->req , 1); | ||
1522 | sg_init_table(&data->resp , 1); | ||
1521 | data->ct.req = &data->req; | 1523 | data->ct.req = &data->req; |
1522 | data->ct.resp = &data->resp; | 1524 | data->ct.resp = &data->resp; |
1523 | data->ct.req_count = data->ct.resp_count = 1; | 1525 | data->ct.req_count = data->ct.resp_count = 1; |