Then the judgment in line 944 is needed. Are the possibilities of these two positions consistent.Why keep this judgment?Regards,Wen Zhiwei.
主 题:Re: [PATCH] gpu/drm/radeon:Fix null pointer risk
日 期:2021-12-31 00:36
发件人:Christian König
收件人:Wen
*主 题:*Re: [PATCH] gpu/drm/radeon:Fix null pointer risk
*日 期:*2021-12-31 00:36
*发件人:*Christian König
*收件人:*Wen
zhiweialexander.deuc...@amd.comxinhui.pan@amd.comairlied@linux.iedan...@ffwll.ch
Am 28.12.21 um 08:31 schrieb Wen Zhiwei:
> If the null pointer is not judged in advance,
> there is a
If the null pointer is not judged in advance,
there is a risk that the pointer will cross
the boundary
Signed-off-by: Wen Zhiwei
---
drivers/gpu/drm/radeon/radeon_vm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/radeon/radeon_vm.c
b/drivers/gpu/drm/radeon
Am 28.12.21 um 08:31 schrieb Wen Zhiwei:
If the null pointer is not judged in advance,
there is a risk that the pointer will cross
the boundary
As far as I can see that case is impossible, why do you want to add a
check for it?
Regards,
Christian.
Signed-off-by: Wen Zhiwei
---
drivers/