Re: [PATCH] graph: do not scan removed instructions

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

 



On Tue, Nov 7, 2017 at 6:54 PM, Luc Van Oostenryck
<luc.vanoostenryck@xxxxxxxxx> wrote:
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
> ---
>  graph.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/graph.c b/graph.c
> index 8cbc22027..c9af9a580 100644
> --- a/graph.c
> +++ b/graph.c
> @@ -130,6 +130,8 @@ static void graph_calls(struct entrypoint *ep, int internal)
>                         continue;
>
>                 FOR_EACH_PTR(bb->insns, insn) {
> +                       if (!insn->bb)
> +                               continue;

Looks good to me.

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