]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use snprintf() with PAGE_SIZE in configfs
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 8 Mar 2022 22:56:58 +0000 (14:56 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 14 Mar 2022 07:43:06 +0000 (08:43 +0100)
commit641e0a84a6acb03cd8fe3658e04982ad8351cc62
tree9fd422016936f38837ef6caff6323bbd22174ded
parent3ba104522c3726866905cef47e3cf62a814cdcc1
nvmet: use snprintf() with PAGE_SIZE in configfs

Instead of using sprintf, use snprintf with buffer size limited to
PAGE_SIZE just like what we have for the rest of the file.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/configfs.c