Re: [PATCH 8/9] drivers/mmc: correct error-handling code

2009-07-28 Thread Anton Vorontsov
On Tue, Jul 28, 2009 at 05:56:00PM +0200, Julia Lawall wrote: > From: Julia Lawall > > sdhci_alloc_host returns an ERR_PTR value in an error case instead of NULL. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // > @matc

[PATCH 8/9] drivers/mmc: correct error-handling code

2009-07-28 Thread Julia Lawall
From: Julia Lawall sdhci_alloc_host returns an ERR_PTR value in an error case instead of NULL. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @match exists@ expression x, E; statement S1, S2; @@ x = sdhci_alloc_host(...) ... w