Tag: 08a965ec93ad0495802462c32b73241d658e189d

net: cavium: liquidio: Return correct error code

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> The return value of vmalloc on failure of allocation of memory should be -ENOMEM and not -1. Found using Coccinelle. A simplified version of the semantic patch used is: // @@ expression *e; identifier l1; position p,q; @@ e@q = vmalloc(…); if@p (e == NULL) { … goto l1; } …

Continue reading