[PATCH linux dev-4.10 v3 16/31] drivers: fsi: occ: Fix errant kfree calls
Eddie James
eajames at linux.vnet.ibm.com
Fri Oct 6 06:24:09 AEDT 2017
From: "Edward A. James" <eajames at us.ibm.com>
Left over from when xfr was an independant structure. Remove these calls
as xfr is a part of the client struct.
Signed-off-by: Edward A. James <eajames at us.ibm.com>
---
drivers/fsi/occ.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/fsi/occ.c b/drivers/fsi/occ.c
index 2d7df8a..cd60c5a 100644
--- a/drivers/fsi/occ.c
+++ b/drivers/fsi/occ.c
@@ -289,7 +289,6 @@ static ssize_t occ_write_common(struct occ_client *client,
if (ubuf) {
if (copy_from_user(&xfr->buf[1], ubuf, len)) {
- kfree(xfr);
rc = -EFAULT;
goto done;
}
@@ -298,7 +297,6 @@ static ssize_t occ_write_common(struct occ_client *client,
data_length = (xfr->buf[2] << 8) + xfr->buf[3];
if (data_length > OCC_CMD_DATA_BYTES) {
- kfree(xfr);
rc = -EINVAL;
goto done;
}
--
1.8.3.1
More information about the openbmc
mailing list