]> 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>
Wed, 20 Feb 2013 02:16:12 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:44 +0000 (16:53 +1100)
commit6d6b6d13ead1b9c8f23075e87fbc93f6f5549631
treea4f1882e96a97b2bce80451b92257ace29226751
parent2c95ee6042b16206d58634ae9f5b69e7401a8219
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