diff options
Diffstat (limited to 'drivers/scsi/tmscsim.c')
-rw-r--r-- | drivers/scsi/tmscsim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index 14cba1ca38b3..5db1520f8ba9 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c | |||
@@ -2082,10 +2082,9 @@ static int dc390_slave_alloc(struct scsi_device *scsi_device) | |||
2082 | uint id = scsi_device->id; | 2082 | uint id = scsi_device->id; |
2083 | uint lun = scsi_device->lun; | 2083 | uint lun = scsi_device->lun; |
2084 | 2084 | ||
2085 | pDCB = kmalloc(sizeof(struct dc390_dcb), GFP_KERNEL); | 2085 | pDCB = kzalloc(sizeof(struct dc390_dcb), GFP_KERNEL); |
2086 | if (!pDCB) | 2086 | if (!pDCB) |
2087 | return -ENOMEM; | 2087 | return -ENOMEM; |
2088 | memset(pDCB, 0, sizeof(struct dc390_dcb)); | ||
2089 | 2088 | ||
2090 | if (!pACB->DCBCnt++) { | 2089 | if (!pACB->DCBCnt++) { |
2091 | pACB->pLinkDCB = pDCB; | 2090 | pACB->pLinkDCB = pDCB; |