|
@@ -595,8 +595,6 @@ static int ses_intf_add(struct device *cdev,
|
|
ses_dev->page10_len = len;
|
|
ses_dev->page10_len = len;
|
|
buf = NULL;
|
|
buf = NULL;
|
|
}
|
|
}
|
|
- kfree(hdr_buf);
|
|
|
|
-
|
|
|
|
scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL);
|
|
scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL);
|
|
if (!scomp)
|
|
if (!scomp)
|
|
goto err_free;
|
|
goto err_free;
|
|
@@ -608,6 +606,8 @@ static int ses_intf_add(struct device *cdev,
|
|
goto err_free;
|
|
goto err_free;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ kfree(hdr_buf);
|
|
|
|
+
|
|
edev->scratch = ses_dev;
|
|
edev->scratch = ses_dev;
|
|
for (i = 0; i < components; i++)
|
|
for (i = 0; i < components; i++)
|
|
edev->component[i].scratch = scomp + i;
|
|
edev->component[i].scratch = scomp + i;
|