]> git.baikalelectronics.ru Git - kernel.git/commit
blk: add an upper sanity check on partition adding
authorAlan Cox <alan@linux.intel.com>
Mon, 17 Sep 2012 10:47:13 +0000 (11:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Sep 2012 09:56:29 +0000 (11:56 +0200)
commit0b054b847cb61bf3fb3208cb08196b8c792ba160
tree408c87e0808e9b4ad4c8f9d95063c89d50350545
parent48b0f5852b410ff03201fd195eb79716676d8e9d
blk: add an upper sanity check on partition adding

65536 should be ludicrous anyway but without it we overflow the
memory computation doing the allocation and badness occurs.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioctl.c