]> git.baikalelectronics.ru Git - kernel.git/commit
ieee1394: raw1394: Do not leak memory on failed trylock.
authorMichael Buesch <mb@bu3sch.de>
Sun, 19 Jul 2009 19:40:39 +0000 (21:40 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 12 Sep 2009 12:48:40 +0000 (14:48 +0200)
commitd876d109e528954b927aa9b107458b0dc1c450e8
tree0262ec2f55cd27294601e71fa0da14f90df9c8c2
parent5b9eb584210617c87f914b7ac98a3e66da3b356e
ieee1394: raw1394: Do not leak memory on failed trylock.

Do not leak the allocated memory in case the mutex_trylock() failed
to acquire the lock.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
This bug does not happen in practice:  All raw1394 clients use
libraw1394, and accesses to a libraw1394 handle need to be serialized
by the client.  This is documented in libraw1394's API reference.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/raw1394.c