Tag: 623d896b361f404de5ed24e312a58646ee04207d

drivers/net/wan/dscc4.c: fix error return code

Author: Julia Lawall <Julia.Lawall@lip6.fr> Move up the initialization of rc so that failure of pci_alloc_consistent returns -ENOMEM as well. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ if (ret < 0) { ... return ret; } ... when != ret = …

Continue reading