commit | dafa73171be8dd31b485f5839e3376b1ca908e24 | [log] [tgz] |
---|---|---|
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | Mon Jan 03 22:31:45 2011 +0000 |
committer | Dan Williams <dan.j.williams@intel.com> | Tue Jan 04 19:16:10 2011 -0800 |
tree | 70d6d14b7be6543cbfe777a523c75dc0a332c402 | |
parent | bf072af461c166964fb110cfcafccd752fbb4c64 [diff] |
ARM: PL08x: fix a leak when preparing TXDs If we fail to allocate the LLI, the prep_* function will return NULL. However, the TXD we allocated will not be placed on any list, nor will it be freed - we'll just drop all references to it. Make sure we free it rather than leaking TXDs. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>