aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorZenghui Yu <yuzenghui@huawei.com>2021-09-25 11:55:07 +0800
committerMark Brown <broonie@kernel.org>2021-09-27 13:01:20 +0100
commitc6e5e92cb29eab3e49dab444730b4ac200caaacb (patch)
tree3f71cddcd969e3eb4c9516f2f3788dc82628b8fa /lib/test_fortify/write_overflow-strncpy-src.c
parente458d3f39d917770cef2ed78891349362ecd3e15 (diff)
regulator: dummy: Use devm_regulator_register()
debugfs code complained at boot time that debugfs: Directory 'reg-dummy-regulator-dummy' with parent 'regulator' already present! if we compile kernel with DEBUG_TEST_DRIVER_REMOVE. The problem is that we don't provide .remove() method for dummy_regulator_driver, which should invoke regulator_unregister() on device teardown to properly free things. Though it's harmless as dummy_pdev never gets unbound in practice, let's use devm_regulator_register() to get rid of the inconsistency. Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Link: https://lore.kernel.org/r/20210925035507.1904-1-yuzenghui@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions