diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2017-12-13 17:25:31 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-12-13 16:46:45 +0000 |
commit | 8253bb3f82554cedb830a4cb65c84796df129c81 (patch) | |
tree | 7599309d4e4048ac3df30e9696073c28e7b38e21 /include/linux/regmap.h | |
parent | Merge branches 'topic/hwspinlock' and 'topic/nolock' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into regmap-const (diff) | |
download | linux-dev-8253bb3f82554cedb830a4cb65c84796df129c81.tar.xz linux-dev-8253bb3f82554cedb830a4cb65c84796df129c81.zip |
regmap: potentially duplicate the name string stored in regmap
Currently we just copy over the pointer passed to regmap_init() in
the regmap config struct. To be on the safe side: duplicate the string
with kstrdup_const() so that if an unaware user passes an address to
a stack-allocated buffer, we won't crash.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regmap.h')
0 files changed, 0 insertions, 0 deletions