Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry pick from commit 201c7b72f0bf38d7f31fd229a01de035d0f10cd1) Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: Julia Lawall <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Nitin Gupta <[email protected]> Acked-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Bug: 24810447 Change-Id: I80e5b9d0b3185128b35a4f15b2c10ffd2b43d826 Signed-off-by: hemantbeast <[email protected]>
- Loading branch information