Tag: d94762989103b5e29938d8a7b0112e72c4633265

[MTD] [NAND] drivers/mtd/nand/pasemi_nand.c: Add missing pci_dev_put

Author: Julia Lawall <julia@diku.dk> pci_get_device increments a reference count that should be decremented using pci_dev_put. The semantic patch that finds the problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r exists@ local idexpression x; statement S,S1; position p1,p2,p3; expression E,E1; type T,T1; expression *ptr != NULL; @@ ( if ((x@p1 = pci_get_device(…)) == NULL) S | x@p1 …

Continue reading