diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-06-24 14:24:03 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-07-11 08:40:18 +0200 |
commit | 40297e7f897281aa7bd61bf1323837a11a10479f (patch) | |
tree | ac2e9dbb110c308f8d0ee52419a9b1b02ad47758 /drivers/hwmon/via686a.c | |
parent | mtd: nand: sunxi: add reset line support (diff) | |
download | linux-40297e7f897281aa7bd61bf1323837a11a10479f.tar.xz linux-40297e7f897281aa7bd61bf1323837a11a10479f.zip |
mtd: nand: sunxi: prevent a small memory leak
I moved the sanity check on ecc->size before the allocation so that we
don't leak memory on error.
Fixes: 05af074a4b73 ('mtd: nand: sunxi: check ecc->size values')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/hwmon/via686a.c')
0 files changed, 0 insertions, 0 deletions