diff options
author | 2017-04-25 12:19:49 +0300 | |
---|---|---|
committer | 2017-05-02 15:54:49 -0700 | |
commit | b98e1995e4fa9030474a61ed0dbc033464fe5ea0 (patch) | |
tree | 95e86e413ced98cdf304b40e64dc0df4e01b5850 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dt-bindings: mtd: Document the STM32 QSPI bindings (diff) | |
download | linux-rng-b98e1995e4fa9030474a61ed0dbc033464fe5ea0.tar.xz linux-rng-b98e1995e4fa9030474a61ed0dbc033464fe5ea0.zip |
mtd: oxnas_nand: Allocating more than necessary in probe()
We only need to allocate sizeof(struct oxnas_nand_ctrl) which is 192
bytes and not sizeof(struct nand_chip) which is a much larger 3056
bytes.
Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions