summaryrefslogtreecommitdiffstats
path: root/crypto/lz4.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2020-07-03 12:33:15 +0200
committerMark Brown <broonie@kernel.org>2020-07-03 16:02:46 +0200
commite84861fec32dee8a2e62bbaa52cded6b05a2a456 (patch)
tree790bd63c75c1b9a5f5a3b7e5d273886e07cf0162 /crypto/lz4.c
parentregmap: Fix memory leak from regmap_register_patch (diff)
downloadlinux-e84861fec32dee8a2e62bbaa52cded6b05a2a456.tar.xz
linux-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 <mkl@pengutronix.de> Link: https://lore.kernel.org/r/20200703103315.267996-1-mkl@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto/lz4.c')
0 files changed, 0 insertions, 0 deletions