[PATCH v3 3/4] drm/mediatek: Add casting before assign
Alexandre Mergnat
amergnat at baylibre.com
Wed Jul 12 13:07:46 UTC 2023
On 22/06/2023 10:02, Jason-JH Lin (林睿祥) wrote:
>> drm_plane_state *new_state,
>> > dma_addr_t addr;
>> > dma_addr_t hdr_addr = 0;
>> > unsigned int hdr_pitch = 0;
>> > +int offset;
>>
>> I agree with Angelo, please set offset as unsigned.
>>
> I think offset should be unsigned, but since src.x1 and src.y1 are
> 'int'. That means 'unsigned int' offset will be very big when src.x1 or
> src.y1 is negative.
> So I just use 'int' for offset here.
Ok
Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>
--
Regards,
Alexandre
More information about the dri-devel
mailing list