nvmet: filter newlines from user input
authorSagi Grimberg <sagi@grimberg.me>
Wed, 6 Jun 2018 12:27:48 +0000 (15:27 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Jun 2018 18:51:10 +0000 (12:51 -0600)
commit9ba2a5cb88969c847015905db7f1627ae3c82f73
tree0a20140ba624428846c3fa66a11149211969d4c4
parentd4c68c7a8e2aa060d3c245052c76e74dd20b141b
nvmet: filter newlines from user input

We should avoid consuming the newlines in traddr, trsvcid and
device_path. Add minimal processing to make sure they are gone.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/configfs.c