aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2020-07-03 10:33:15 +0000
committerMark Brown <[email protected]>2020-07-03 14:02:46 +0000
commite84861fec32dee8a2e62bbaa52cded6b05a2a456 (patch)
tree790bd63c75c1b9a5f5a3b7e5d273886e07cf0162 /scripts/gcc-plugins/sancov_plugin.c
parentregmap: Fix memory leak from regmap_register_patch (diff)
downloadkernel-e84861fec32dee8a2e62bbaa52cded6b05a2a456.tar.gz
kernel-e84861fec32dee8a2e62bbaa52cded6b05a2a456.zip
regmap: dev_get_regmap_match(): fix string comparison
This function is used by dev_get_regmap() to retrieve a regmap for the specified device. If the device has more than one regmap, the name parameter can be used to specify one. The code here uses a pointer comparison to check for equal strings. This however will probably always fail, as the regmap->name is allocated via kstrdup_const() from the regmap's config->name. Fix this by using strcmp() instead. Signed-off-by: Marc Kleine-Budde <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions