diff options
author | wenxiong@linux.vnet.ibm.com <wenxiong@linux.vnet.ibm.com> | 2013-03-14 14:52:25 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-12 18:07:42 -0400 |
commit | 222ab5946860e1d77870ffbfebebff2bcb1f4215 (patch) | |
tree | 6ed646b1b53667ad098a6440333543ca114019bb /drivers/scsi/ipr.h | |
parent | 364398324c901bc834f762eb5443d2e5a1d2a0db (diff) |
[SCSI] ipr: Avoid target_destroy accessing memory after it was freed
Defined target_ids,array_ids and vsets_ids as unsigned long to avoid
target_destroy accessing memory after it was freed.
Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index a1fb840596ef..07a85ce41782 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -1440,9 +1440,9 @@ struct ipr_ioa_cfg { | |||
1440 | /* | 1440 | /* |
1441 | * Bitmaps for SIS64 generated target values | 1441 | * Bitmaps for SIS64 generated target values |
1442 | */ | 1442 | */ |
1443 | unsigned long *target_ids; | 1443 | unsigned long target_ids[BITS_TO_LONGS(IPR_MAX_SIS64_DEVS)]; |
1444 | unsigned long *array_ids; | 1444 | unsigned long array_ids[BITS_TO_LONGS(IPR_MAX_SIS64_DEVS)]; |
1445 | unsigned long *vset_ids; | 1445 | unsigned long vset_ids[BITS_TO_LONGS(IPR_MAX_SIS64_DEVS)]; |
1446 | 1446 | ||
1447 | u16 type; /* CCIN of the card */ | 1447 | u16 type; /* CCIN of the card */ |
1448 | 1448 | ||