dmatest: fix use after free in dmatest_exit
authorDan Williams <dan.j.williams@intel.com>
Wed, 4 Mar 2009 23:06:03 +0000 (16:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 4 Mar 2009 23:06:03 +0000 (16:06 -0700)
commit7cbd4877e5b167b56a3d6033b926a9f925186e12
tree03dbe000fa5086d07df0fcae8d9ac1534bd3d239
parentc74ef1f867d18171c8617519ee5fe40b02903934
dmatest: fix use after free in dmatest_exit

dmatest_cleanup_chanel will free dtc, so grab ->chan before it goes away
and use it to do the release.

Reported-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmatest.c