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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:24:14 +0000 (08:24 +0200)
commit613f35568a5d70296352632eb09c8c2fed32fca2
tree71e432e67808145138be7864dc4a8e8344c1fad2
parentfec47d458add0fa14f37da023ea9aa35019a0998
hostfs: Use kasprintf() instead of fixed buffer formatting

[ 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>
fs/hostfs/hostfs_kern.c