Re: [PATCH] mtd: ck804xrom: fix missing pci device put in error paths

2020-08-28 Thread James Bond
leanup(window) -> pci_dev_put(window->pdev); And sorry for bothering you. Thanks, James On Thu, Aug 27, 2020 at 7:46 AM Miquel Raynal wrote: > > Hi James, > > James Bond wrote on Fri, 21 Aug 2020 > 02:05:36 -0500: > > > pci_dev_get increases the

[PATCH] mtd: ck804xrom: fix missing pci device put in error paths

2020-08-21 Thread James Bond
pci_dev_get increases the refcount of "pdev". In the error paths, pci_dev_put should be called to handle the "pdev" and decrease the corresponding refcount. Fixes: 90afffc8bd79 ("[MTD] [MAPS] Support for BIOS flash chips on the nvidia ck804 southbridge") Signed-of

[PATCH] tty/vt: fix a memory leak in con_insert_unipair

2020-08-09 Thread James Bond
BUG: leak checking failed To fix this issue, we need to release the pointer p1 when the call of the function kmalloc_array fail. Signed-off-by: James Bond --- drivers/tty/vt/consolemap.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/v

[PATCH] firmware: dmi-sysfs: Add clean-up operations to fix refcount leak

2020-08-04 Thread James Bond
According to the documentation of function kobject_init_and_add(), when this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Fixes: 925a1da7477f ("firmware: Break out system_event_log in dmi-sysfs") Signed-off-by:

BIG PROBLEM

2001-06-28 Thread james bond
1-systeme hangs when i try ton compile anything i've compiled the kernel 2.4.4 , once i finish and boot the first time on 2.4.4 everything goses ok , only too problemes 1st- klogd takes 100% CPU time 2nd- cat /proc/cpuinf --guives me too CPU'S without putin any info about the CPU 1 like

BIG PROBLEM

2001-06-28 Thread james bond
1-systeme hangs when i try ton compile anything i've compiled the kernel 2.4.4 , once i finish and boot the first time on 2.4.4 everything goses ok , only too problemes 1st- klogd takes 100% CPU time 2nd- cat /proc/cpuinf --guives me too CPU'S without putin any info about the CPU 1 like