]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix oops in video_register_device
authorGerd Knorr <kraxel@bytesex.org>
Wed, 5 May 2004 01:16:54 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 5 May 2004 01:16:54 +0000 (18:16 -0700)
commit1a4c6c5ddccf4c1756e392d513dee42a36eeb2f6
treefb0e769cc7e7e2b1d170b663f78ef262becbad8e
parentfb2fc47c4dd051833153801b4de2ee7e1b8b8917
[PATCH] Fix oops in video_register_device

degerrit@web.de wrote:
   "I caused an oops in unusual circumstances by accidentally "forcing" a
    video device number which was too high or already taken (don't know
    which). I assume this probably shouldn't give an oops (though it was my
     fault), so here's a bugreport..."

Fixed by adding a range check for the number passed in by the driver.
drivers/media/video/videodev.c