Author: Jiayi Ye <yejiayily@gmail.com> If net is null and failed path is executed, dereference null may happen. This patch fixes it. The following Coccinelle semantic patch was used. @@ expression E, E1; identifier f; statement S1,S2,S3; @@ * if (E == NULL) { … when != if (E == NULL) S1 else S2 when != …