Home
last modified time | relevance | path

Searched hist:"229 d0cfae5b21bfc42525cf43b0b4279243acc4e" (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/scripts/kconfig/
H A Dlkc_proto.hdiff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()

sym_escape_string_value() returns a malloc'ed memory, but as
(const char *). So, it must be casted to (void *) when it is free'd.
This is odd.

The return type of sym_escape_string_value() should be (char *).

I exploited that free(NULL) has no effect.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
H A Dsymbol.cdiff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()

sym_escape_string_value() returns a malloc'ed memory, but as
(const char *). So, it must be casted to (void *) when it is free'd.
This is odd.

The return type of sym_escape_string_value() should be (char *).

I exploited that free(NULL) has no effect.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
H A Dconf.cdiff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()

sym_escape_string_value() returns a malloc'ed memory, but as
(const char *). So, it must be casted to (void *) when it is free'd.
This is odd.

The return type of sym_escape_string_value() should be (char *).

I exploited that free(NULL) has no effect.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
H A Dconfdata.cdiff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()

sym_escape_string_value() returns a malloc'ed memory, but as
(const char *). So, it must be casted to (void *) when it is free'd.
This is odd.

The return type of sym_escape_string_value() should be (char *).

I exploited that free(NULL) has no effect.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>