Re: segfault on switch() + bitwise combo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 9 Jun 2006, Alexey Dobriyan wrote:
>
> It triggers by checking with -Wbitwise on drivers/net/wireless/ipw2100.c
> and net/sctp/sm_make_chunk.c

Perhaps something like this?

		Linus
---
diff --git a/evaluate.c b/evaluate.c
index 2c70cee..42005eb 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -359,7 +359,7 @@ static struct symbol *bad_expr_type(stru
 		break;
 	}
 
-	return NULL;
+	return expr->ctype = &bad_ctype;
 }
 
 static struct symbol *compatible_float_binop(struct expression **lp, struct expression **rp)
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux