Re: [Nouveau] [PATCH] drm/nouveau/bios: fix incorrect kfree in platform_init

2020-01-03 Thread Wuxu (Max)
Thank you, I got it On 2020/1/3 19:58, Roy Spliet wrote: > (re-sending as plain text) > > NACK. The before and after of this patch are functionally identical. The > if-block returns unconditionally ("return priv;"), so the kfree will only > ever be reached if the condition in the if-statement e

Re: [Nouveau] [PATCH] drm/nouveau/bios: fix incorrect kfree in platform_init

2020-01-03 Thread Roy Spliet
(re-sending as plain text) NACK. The before and after of this patch are functionally identical. The if-block returns unconditionally ("return priv;"), so the kfree will only ever be reached if the condition in the if-statement evaluates to false. Explicitly writing out an else-block is thus su

Re: [Nouveau] [PATCH] drm/nouveau/bios: fix incorrect kfree in platform_init

2020-01-03 Thread Roy Spliet
NACK. The before and after of this patch are functionally identical. The if-block returns unconditionally ("return priv;"), so the kfree will only ever be reached if the condition in the if-statement evaluates to false. Explicitly writing out an else-block is thus superfluous. Op 03-01-2020 om

[Nouveau] [PATCH] drm/nouveau/bios: fix incorrect kfree in platform_init

2020-01-03 Thread wuxu . wu
Hi, I think there has a incorrect kfree in pcirom_init function. In pcirom_init function priv porinter could be free only when priv != null and priv->rom is null. Signed-off-by: wuxu.wu --- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[Nouveau] [PATCH] drm/nouveau/bios: fix incorrect kfree in platform_init

2019-12-27 Thread wuxu . wu
priv porinter could be free only when priv != null and priv->rom is null. Signed-off-by: wuxu.wu --- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/

[Nouveau] [PATCH] drm/nouveau/bios: fix incorrect kfree in platform_init

2019-12-27 Thread wuxu . wu
priv porinter could be free only when priv != null and priv->rom is null. --- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/