]> git.baikalelectronics.ru Git - kernel.git/commit
blk: fix overflow in queue_discard_max_hw_show
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Wed, 17 Feb 2016 14:15:30 +0000 (14:15 +0000)
committerJens Axboe <axboe@fb.com>
Wed, 17 Feb 2016 17:20:42 +0000 (10:20 -0700)
commite5a80172f1ea937c1e763e516989bd42b9d7fc5f
tree99fe77119a941ad307706095915b99bb3325fadb
parent3f7b3a2b30aa7a14ad249aea9871b1c274edfbec
blk: fix overflow in queue_discard_max_hw_show

We get this right for queue_discard_max_show but not max_hw_show. Follow the
same pattern as queue_discard_max_show instead so that we don't truncate.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-sysfs.c