Julia Lawall 4856800501 drivers/dma: Eliminate a NULL pointer dereference
If td_desc is NULL, just skip both kfrees.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
expression E,E1;
identifier f;
statement S1,S2,S3;
@@

if ((E == NULL && ...) || ...)
{
  ... when != if (...) S1 else S2
      when != E = E1
* E->f
  ... when any
  return ...;
}
else S3
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2010-07-01 02:27:35 -07:00
..
2010-05-17 16:30:58 -07:00
2010-05-17 16:30:58 -07:00
2010-05-17 16:30:58 -07:00
2010-02-02 14:51:42 -07:00
2010-05-17 16:30:58 -07:00
2010-05-23 20:28:19 -07:00
2010-05-23 20:28:19 -07:00
2010-05-17 16:30:58 -07:00
2010-05-23 20:28:19 -07:00