Re: [PATCH v2 3/4] drm/mediatek: Add casting before assign

2023-06-18 Thread 林睿祥
Hi Angelo, Thanks for the reviews. On Wed, 2023-06-14 at 10:43 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Il 13/06/23 13:32, Jason-JH.Lin ha scritto: > 1. Add casting before assign t

Re: [PATCH v2 3/4] drm/mediatek: Add casting before assign

2023-06-14 Thread AngeloGioacchino Del Regno
Il 13/06/23 13:32, Jason-JH.Lin ha scritto: 1. Add casting before assign to avoid the unintentional integer overflow or unintended sign extension. 2. Add a int varriable for multiplier calculation instead of calculating different types multiplier with dma_addr_t varriable directly. Signe

[PATCH v2 3/4] drm/mediatek: Add casting before assign

2023-06-13 Thread Jason-JH . Lin
1. Add casting before assign to avoid the unintentional integer overflow or unintended sign extension. 2. Add a int varriable for multiplier calculation instead of calculating different types multiplier with dma_addr_t varriable directly. Signed-off-by: Jason-JH.Lin Fixes: 1a64a7aff8da ("dr