]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
hostfs: Use kasprintf() instead of fixed buffer formatting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Mar 2020 13:07:35 +0000 (15:07 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 4 May 2021 14:08:50 +0000 (16:08 +0200)
commit1337d8b3d0da71e1a2d898887253be5a000e1258
treeff18cfc35edb75fb02144d307aef10febb0896ab
parent4d819fd83fc0ecbe7515b29fb07fdfd270707b4b
hostfs: Use kasprintf() instead of fixed buffer formatting

BugLink: https://bugs.launchpad.net/bugs/1926489
[ Upstream commit b58c4e96192ee7c47d5c67853b1557306cfa0e7f ]

Improve readability and maintainability by replacing a hardcoded string
allocation and formatting by the use of the kasprintf() helper.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/hostfs/hostfs_kern.c