diff options
Diffstat (limited to 'drivers/scsi/ses.c')
-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 1d7a8780e00c..0d9d6f7567f5 100644 --- a/drivers/scsi/ses.c +++ b/drivers/scsi/ses.c | |||
@@ -595,8 +595,6 @@ static int ses_intf_add(struct device *cdev, | |||
595 | ses_dev->page10_len = len; | 595 | ses_dev->page10_len = len; |
596 | buf = NULL; | 596 | buf = NULL; |
597 | } | 597 | } |
598 | kfree(hdr_buf); | ||
599 | |||
600 | scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL); | 598 | scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL); |
601 | if (!scomp) | 599 | if (!scomp) |
602 | goto err_free; | 600 | goto err_free; |
@@ -608,6 +606,8 @@ static int ses_intf_add(struct device *cdev, | |||
608 | goto err_free; | 606 | goto err_free; |
609 | } | 607 | } |
610 | 608 | ||
609 | kfree(hdr_buf); | ||
610 | |||
611 | edev->scratch = ses_dev; | 611 | edev->scratch = ses_dev; |
612 | for (i = 0; i < components; i++) | 612 | for (i = 0; i < components; i++) |
613 | edev->component[i].scratch = scomp + i; | 613 | edev->component[i].scratch = scomp + i; |