linux-4.16-rc5/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c:1723]: (warning) Possible null pointer dereference: pipe_ctx

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

 



hello there,

Source code is


    for (i = 0; i < dc->res_pool->pipe_count; i++) {
        if (res_ctx->pipe_ctx[i].stream) {
            pipe_ctx = &res_ctx->pipe_ctx[i];
            *pipe_idx = i;
            break;
        }
    }

    /* Only supports eDP */
    if (pipe_ctx->stream->sink->link->connector_signal != SIGNAL_TYPE_EDP)
        return false;

Suggest add some code to deal with the case that the for loop doesn't find
what it is looking for and so pipe_ctx is NULL.

Regards

David Binderman
    
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux