]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fix NULL pointer deref. and resource leak
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 20 Feb 2008 20:10:06 +0000 (21:10 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 21 Feb 2008 18:05:56 +0000 (19:05 +0100)
commit5f21105eedc7b9069fb6938d16db7734e358f814
tree41283a905b089cee26103187e54935abffb88207
parent48df0b09d7597da5e90c7c1c7333b80c81f44ff4
firewire: fix NULL pointer deref. and resource leak

By supplying ioctl()s in the wrong order, a userspace client was able to
trigger NULL pointer dereferences.  Furthermore, by calling
ioctl_create_iso_context more than once, new contexts could be created
without ever freeing the previously created contexts.

Thanks to Anders Blomdell for the report.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c