mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] media: atomisp: do not free kmalloc memory by vfree
@ 2021-02-19 10:12 Jiri Slaby
  0 siblings, 0 replies; 3+ messages in thread
From: Jiri Slaby @ 2021-02-19 10:12 UTC (permalink / raw)
  To: mchehab+huawei; +Cc: linux-media, sakari.ailus, linux-kernel, Jiri Slaby

fw_minibuffer[i].buffer is allocated by kmalloc in sh_css_load_blob_info
and by vmalloc in setup_binary. So use kvfree to decide which of those
allocators to use for freeing.

Also remove the useless cast.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
 drivers/staging/media/atomisp/pci/sh_css_firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/atomisp/pci/sh_css_firmware.c b/drivers/staging/media/atomisp/pci/sh_css_firmware.c
index db25e39bea88..f4ce8ace9d50 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_firmware.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_firmware.c
@@ -366,7 +366,7 @@ void sh_css_unload_firmware(void)
 			if (fw_minibuffer[i].name)
 				kfree((void *)fw_minibuffer[i].name);
 			if (fw_minibuffer[i].buffer)
-				vfree((void *)fw_minibuffer[i].buffer);
+				kvfree(fw_minibuffer[i].buffer);
 		}
 		kfree(fw_minibuffer);
 		fw_minibuffer = NULL;
-- 
2.30.1


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [PATCH] MAINTAINERS: use my kernel.org address
@ 2020-06-23  6:32 Joe Perches
  2020-07-17  8:05 ` [PATCH] media: atomisp: do not free kmalloc memory by vfree Jiri Slaby
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2020-06-23  6:32 UTC (permalink / raw)
  To: Jiri Slaby, corbet; +Cc: linux-kernel

On Tue, 2020-06-23 at 08:11 +0200, Jiri Slaby wrote:
> There were enough problems with suse.{com,cz} MTAs recently. I am bored
> by restoring lost e-mails from public archives. Let's switch (all) my
> MAINTAINERS addresses to @kernel.org and forward it there as I wish.
[]
> diff --git a/MAINTAINERS b/MAINTAINERS
[]
> @@ -2881,7 +2881,7 @@ S:	Supported
>  F:	drivers/net/wireless/ath/*
>  
>  ATHEROS ATH5K WIRELESS DRIVER
> -M:	Jiri Slaby <jirislaby@gmail.com>
> +M:	Jiri Slaby <jirislaby@kernel.org>
[]
>  TTY LAYER
>  M:	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> -M:	Jiri Slaby <jslaby@suse.com>
> +M:	Jiri Slaby <jirislaby@kernel.org>

Add .mailmap entries as well?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-19 10:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 10:12 [PATCH] media: atomisp: do not free kmalloc memory by vfree Jiri Slaby
  -- strict thread matches above, loose matches on Subject: below --
2020-06-23  6:32 [PATCH] MAINTAINERS: use my kernel.org address Joe Perches
2020-07-17  8:05 ` [PATCH] media: atomisp: do not free kmalloc memory by vfree Jiri Slaby
2020-07-17  8:40   ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®