Files
linux-apfs/drivers/mmc/host
Julia Lawall 3423d80af6 drivers/mmc: Move dereference after NULL test
If the NULL test on mrq is needed, then the derefernce should be after the
NULL test.

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

// <smpl>
@match exists@
expression x, E;
identifier fld;
@@

* x->fld
  ... when != \(x = E\|&x\)
* x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-15 08:53:34 -08:00
..
2008-08-01 19:04:26 +02:00
2009-07-31 12:28:46 +02:00
2008-12-16 14:58:17 +01:00
2009-09-23 07:39:32 -07:00
2009-09-23 07:39:43 -07:00
2009-12-10 10:14:34 -08:00
2009-03-24 21:30:03 +01:00
2009-12-15 08:53:25 -08:00
2009-10-01 16:11:15 -07:00
2009-09-23 07:39:38 -07:00
2009-06-13 22:42:59 +02:00
2009-09-23 07:39:38 -07:00
2008-12-31 19:56:05 +01:00
2009-06-13 22:43:00 +02:00
2009-04-08 20:14:54 +02:00