]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firewire: add minor number range check to fw_device_init()
authorTejun Heo <tj@kernel.org>
Thu, 7 Feb 2013 01:31:36 +0000 (12:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:29 +0000 (16:47 +1100)
commitf5542a4fb8ad17c105173c8ece5c5ac4894f737e
treee142280e43114bf478cb16ce5df478a44d2aec24
parent1cf169dab888024b639baf9a24f3cc9f937729ca
firewire: add minor number range check to fw_device_init()

fw_device_init() didn't check whether the allocated minor number isn't
too large.  Fail if it goes overflows MINORBITS.

Signed-off-by: Tejun Heo <tj@kernel.org>
Suggested-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/firewire/core-device.c