]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig/symbol.c: use correct pointer type argument for sizeof
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 8 Nov 2017 21:09:59 +0000 (22:09 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Nov 2017 14:12:02 +0000 (23:12 +0900)
commit1b1b8f39cf0eff5c568a3a53a556443349f3d339
treeb1ba5b5332108d1493aa5eedeb695092f953bed5
parentb2b8b90e54c89f2356dfac22853c9bedd7fe4718
kconfig/symbol.c: use correct pointer type argument for sizeof

sym_arr is of type struct symbol **.
So in malloc we need sizeof(struct symbol *).

The problem was indicated by coccinelle.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/symbol.c