diff options
-rw-r--r-- | drivers/scsi/ses.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c index 55b034b72708..3c8a0248ea45 100644 --- a/drivers/scsi/ses.c +++ b/drivers/scsi/ses.c | |||
@@ -591,8 +591,6 @@ static int ses_intf_add(struct device *cdev, | |||
591 | ses_dev->page10_len = len; | 591 | ses_dev->page10_len = len; |
592 | buf = NULL; | 592 | buf = NULL; |
593 | } | 593 | } |
594 | kfree(hdr_buf); | ||
595 | |||
596 | scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL); | 594 | scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL); |
597 | if (!scomp) | 595 | if (!scomp) |
598 | goto err_free; | 596 | goto err_free; |
@@ -604,6 +602,8 @@ static int ses_intf_add(struct device *cdev, | |||
604 | goto err_free; | 602 | goto err_free; |
605 | } | 603 | } |
606 | 604 | ||
605 | kfree(hdr_buf); | ||
606 | |||
607 | edev->scratch = ses_dev; | 607 | edev->scratch = ses_dev; |
608 | for (i = 0; i < components; i++) | 608 | for (i = 0; i < components; i++) |
609 | edev->component[i].scratch = scomp + i; | 609 | edev->component[i].scratch = scomp + i; |