Re: segfault on switch() + bitwise combo

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

 



On Sat, Jun 10, 2006 at 11:43:50AM -0700, Linus Torvalds wrote:
> 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?

Looks like it works, thanks.

> --- 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