Re: [PATCH next] drm/loongson: Fix error handling in lsdc_pixel_pll_setup()

2023-08-10 Thread suijingfeng
Hi, On 2023/7/20 20:39, Harshit Mogalapalli wrote: There are two problems in lsdc_pixel_pll_setup() 1. If kzalloc() fails then call iounmap() to release the resources. 2. Both kzalloc and ioremap doesnot return error pointers on failure, so using IS_ERR_OR_NULL() checks is a bit confusing a

[PATCH next] drm/loongson: Fix error handling in lsdc_pixel_pll_setup()

2023-07-20 Thread Harshit Mogalapalli
There are two problems in lsdc_pixel_pll_setup() 1. If kzalloc() fails then call iounmap() to release the resources. 2. Both kzalloc and ioremap doesnot return error pointers on failure, so using IS_ERR_OR_NULL() checks is a bit confusing and not very right, fix this by changing those to NULL