diff options
author | 2010-05-27 14:33:17 +0200 | |
---|---|---|
committer | 2010-07-01 02:27:35 -0700 | |
commit | 485680050166dc8c6ac976346430ab1f453c228b (patch) | |
tree | ee1400398cb1f88dcb975715e16dfa525db9cecf /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dma/timb_dma: compile warning on 32 bit (diff) | |
download | wireguard-linux-485680050166dc8c6ac976346430ab1f453c228b.tar.xz wireguard-linux-485680050166dc8c6ac976346430ab1f453c228b.zip |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions