OSDN Git Service

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)
commit98152eb70fffad910ee7c511b110afe98f162fc5
tree9fd422016936f38837ef6caff6323bbd22174ded
parent73d77c53ff342bfa23daedf4475cdd06618e447b
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