Yang Yingliang
c5b088a6bb
MIPS: vpe-cmp: fix possible memory leak while module exiting
...
[ Upstream commit c5ed1fe0801f0c66b0fbce2785239a5664629057 ]
dev_set_name() allocates memory for name, it need be freed
when module exiting, call put_device() to give up reference,
so that it can be freed in kobject_cleanup() when the refcount
hit to 0. The vpe_device is static, so remove kfree() from
vpe_device_release().
Fixes: 17a1d523aa ("MIPS: APRP: Add VPE loader support for CMP platforms.")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-07 12:07:14 +01:00
..
.gitignore
8250-platform.c
asm-offsets.c
MIPS: IRQ Stack: Unwind IRQ stack onto task stack
2017-10-08 10:26:09 +02:00
binfmt_elfn32.c
MIPS: kernel: Audit and remove any unnecessary uses of module.h
2016-10-05 01:31:20 +02:00
binfmt_elfo32.c
MIPS: kernel: Audit and remove any unnecessary uses of module.h
2016-10-05 01:31:20 +02:00
bmips_5xxx_init.S
MIPS: BMIPS: Make whitespacely correct.
2016-05-09 12:00:01 +02:00
bmips_vec.S
MIPS: BMIPS: Add Whirlwind (BMIPS5200) initialization code
2016-05-09 12:00:01 +02:00
branch.c
MIPS: Fix a typo: s/preset/present/ in r2-to-r6 emulation error message
2017-07-27 15:08:05 -07:00
cevt-bcm1480.c
MIPS: cevt-bcm1480: Migrate to new 'set-state' interface
2015-09-03 12:07:51 +02:00
cevt-ds1287.c
MIPS: cevt-ds1287: Migrate to new 'set-state' interface
2015-09-03 12:07:51 +02:00
cevt-gt641xx.c
MIPS: cevt-gt641xx: Migrate to new 'set-state' interface
2015-09-03 12:07:51 +02:00
cevt-r4k.c
MIPS: cevt-r4k: Fix out-of-bounds array access
2017-05-03 08:36:38 -07:00
cevt-sb1250.c
MIPS: cevt-sb1250: Migrate to new 'set-state' interface
2015-09-03 12:07:52 +02:00
cevt-txx9.c
MIPS: cevt-txx9: Migrate to new 'set-state' interface
2015-09-03 12:07:53 +02:00
cps-vec-ns16550.S
MIPS: CPS: Early debug using an ns16550-compatible UART
2015-11-11 08:34:25 +01:00
cps-vec.S
MIPS: smp-cps: Fix retrieval of VPE mask on big endian CPUs
2017-10-08 10:26:09 +02:00
cpu-bugs64.c
tree-wide: replace config_enabled() with IS_ENABLED()
2016-08-04 08:50:07 -04:00
cpu-probe.c
MIPS: Add MIPS_CPU_FTLB for Loongson-3A R2
2017-04-12 12:41:14 +02:00
crash.c
MIPS: kexec: Mark CPU offline before disabling local IRQ
2018-11-21 09:25:56 +01:00
crash_dump.c
mips: Convert pr_warning to pr_warn
2014-11-24 07:44:51 +01:00
csrc-bcm1480.c
MIPS: csrc-bcm1480: Implement read_sched_clock
2015-04-01 17:21:27 +02:00
csrc-ioasic.c
MIPS: csrc-ioasic: Implement read_sched_clock
2015-04-01 17:21:28 +02:00
csrc-r4k.c
MIPS: Don't register r4k sched clock when CPUFREQ enabled
2016-07-24 12:00:15 +02:00
csrc-sb1250.c
MIPS: csrc-sb1250: Implement read_sched_clock
2015-04-01 17:21:33 +02:00
early_printk.c
early_printk_8250.c
elf.c
MIPS: Avoid BUG warning in arch_check_elf
2017-05-03 08:36:38 -07:00
entry.S
MIPS: Fix IRQ tracing & lockdep when rescheduling
2017-07-05 14:40:17 +02:00
ftrace.c
ftrace: Add return address pointer to ftrace_ret_stack
2016-08-24 12:15:14 +02:00
genex.S
MIPS: Fix IRQ tracing when call handle_fpe() and handle_msa_fpe()
2020-06-20 10:24:18 +02:00
gpio_txx9.c
MIPS: txx9: switch to gpiochip_add_data()
2016-02-19 09:51:44 +01:00
head.S
MIPS: head: Reorder instructions missing a delay slot
2017-07-05 14:40:17 +02:00
i8253.c
MIPS: kernel: only use i8253 clocksource with periodic clockevent
2019-09-06 10:19:31 +02:00
idle.c
MIPS: Loongson: Add Loongson-3A R2 basic support
2016-05-13 14:02:14 +02:00
irq-gt641xx.c
irq-msc01.c
irq-rm7000.c
irq.c
MIPS: irq: Allocate accurate order pages for irq stack
2019-03-13 14:04:54 -07:00
irq_txx9.c
jump_label.c
jump_label: Rename JUMP_LABEL_{EN,DIS}ABLE to JUMP_LABEL_{JMP,NOP}
2015-08-03 11:34:12 +02:00
kgdb.c
MIPS: KGDB: Use kernel context for sleeping threads
2017-05-03 08:36:38 -07:00
kprobes.c
MIPS: tracing: disable uprobe/kprobe on compact branch instructions
2016-10-06 17:37:40 +02:00
linux32.c
MIPS: kernel: Audit and remove any unnecessary uses of module.h
2016-10-05 01:31:20 +02:00
machine_kexec.c
MIPS: kexec: Mark CPU offline before disabling local IRQ
2018-11-21 09:25:56 +01:00
Makefile
MIPS: Factor o32 specific code into signal_o32.c
2016-08-02 11:02:35 +02:00
mcount.S
mips: ftrace: fix static function graph tracing
2018-07-03 11:23:07 +02:00
mips-cm.c
mips: cm: Fix an invalid error code of INTVN_*_ERR
2020-06-20 10:24:16 +02:00
mips-cpc.c
MIPS: CPC: Provide default mips_cpc_default_phys_base to ignore CPC
2016-11-04 00:17:46 +01:00
mips-mt-fpaff.c
MIPS: Fix sched_getaffinity with MT FPAFF enabled
2015-08-03 09:25:02 +02:00
mips-mt.c
mips-r2-to-r6-emul.c
MIPS: r2-on-r6-emu: Clear BLTZALL and BGEZALL debugfs counters
2018-03-22 09:17:50 +01:00
mips_ksyms.c
MIPS: uaccess: Take EVA into account in [__]clear_user
2015-12-22 11:58:43 +01:00
mips_machine.c
module-rela.c
MIPS: module: fix incorrect IS_ERR_VALUE macro usages
2016-05-13 14:02:11 +02:00
module.c
MIPS: Migrate exception table users off module.h and onto extable.h
2016-10-04 16:13:57 +02:00
octeon_switch.S
MIPS: Fix octeon FP context switch handling
2015-10-02 19:16:06 +02:00
perf_event.c
perf core: Add a 'nr' field to perf_event_callchain_context
2016-05-16 23:11:51 -03:00
perf_event_mipsxx.c
MIPS: perf: Remove incorrect odd/even counter handling for I6400
2020-05-10 10:28:03 +02:00
pm-cps.c
MIPS: pm-cps: Drop manual cache-line alignment of ready_count
2017-07-05 14:40:17 +02:00
pm.c
MIPS: Fix watchpoint restoration
2016-05-09 12:00:02 +02:00
probes-common.h
MIPS: tracing: disable uprobe/kprobe on compact branch instructions
2016-10-06 17:37:40 +02:00
proc.c
MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK
2022-08-25 11:09:25 +02:00
process.c
MIPS: Remove function size check in get_frame_info()
2019-03-13 14:05:01 -07:00
prom.c
MIPS: Fix build with CONFIG_OF=y for non OF-enabled targets
2015-08-03 09:25:00 +02:00
ptrace.c
MIPS: Correct the 64-bit DSP accumulator register size
2018-09-05 09:20:10 +02:00
ptrace32.c
MIPS: Correct the 64-bit DSP accumulator register size
2018-09-05 09:20:10 +02:00
r4k_fpu.S
MIPS: Use copy_s.fmt rather than copy_u.fmt
2016-05-09 12:00:04 +02:00
r4k_switch.S
MIPS: Remove redundant asm/pgtable-bits.h inclusions
2016-05-13 15:30:25 +02:00
r2300_fpu.S
signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT
2021-11-26 11:48:24 +01:00
r2300_switch.S
MIPS: Fix R2300 FP context switch handling
2015-10-02 19:16:46 +02:00
r6000_fpu.S
MIPS: Fix ISA I/II FP signal context offsets
2016-11-04 01:38:52 +01:00
relocate.c
MIPS: relocatable: fix possible boot hangup with KASLR enabled
2021-01-23 15:38:16 +01:00
relocate_kernel.S
MIPS: Replace add and sub instructions in relocate_kernel.S with addiu
2015-08-03 15:26:30 +02:00
reset.c
MIPS: Provide fallback reboot/poweroff/halt implementations
2015-04-01 17:21:58 +02:00
rtlx-cmp.c
rtlx-mt.c
rtlx.c
MIPS: rtlx: Remove KERN_DEBUG from pr_debug() arguments in rtlx.c
2014-11-24 07:44:04 +01:00
scall32-o32.S
MIPS: Save static registers before sysmips
2017-07-27 15:08:04 -07:00
scall64-64.S
MIPS: Save static registers before sysmips
2017-07-27 15:08:04 -07:00
scall64-n32.S
MIPS: Save static registers before sysmips
2017-07-27 15:08:04 -07:00
scall64-o32.S
MIPS: scall64-o32: Fix indirect syscall number load
2019-05-02 09:32:00 +02:00
segment.c
MIPS: Print segment physical address when EU=1
2016-07-28 11:44:30 +02:00
setup.c
MIPS: Make sparse_init() using top-down allocation
2020-06-20 10:24:15 +02:00
signal-common.h
MIPS: Save MSA extended context around signals
2015-09-03 12:07:59 +02:00
signal.c
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-08-06 09:13:11 -04:00
signal32.c
MIPS: Factor o32 specific code into signal_o32.c
2016-08-02 11:02:35 +02:00
signal_n32.c
MIPS: Initial implementation of a VDSO
2015-11-11 08:36:36 +01:00
signal_o32.c
MIPS: Factor o32 specific code into signal_o32.c
2016-08-02 11:02:35 +02:00
smp-bmips.c
MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores
2020-09-12 11:47:33 +02:00
smp-cmp.c
MIPS: Make smp CMP, CPS and MT use the new generic IPI functions
2016-02-25 10:56:58 +01:00
smp-cps.c
MIPS: smp-cps: Avoid BUG() when offlining pre-r6 CPUs
2016-09-29 18:59:49 +02:00
smp-mt.c
MIPS: Move identification of VP(E) into proc.c from smp-mt.c
2016-10-04 16:13:57 +02:00
smp-up.c
smp.c
MIPS: smp: fill in sibling and core maps earlier
2022-03-23 09:00:33 +01:00
spinlock_test.c
MIPS: Declare mips_debugfs_dir in a header
2015-10-26 09:49:42 +01:00
spram.c
MIPS: Add P6600 cases to CPU switch statements
2016-05-13 14:01:52 +02:00
stacktrace.c
MIPS: Add LATENCYTOP support
2015-11-11 08:36:46 +01:00
sync-r4k.c
MIPS: sync-r4k: reduce skew while synchronization
2016-01-24 01:31:51 +01:00
syscall.c
signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT
2021-11-26 11:48:24 +01:00
sysrq.c
MIPS: Refactor dumping of TLB registers for r3k/r4k
2015-09-03 12:07:45 +02:00
time.c
MIPS: Fix CP0 counter erratum detection for R4k CPUs
2022-05-12 12:14:56 +02:00
topology.c
MIPS: CPU#0 is not hotpluggable
2020-08-21 11:02:08 +02:00
traps.c
MIPS: fix fortify panic when copying asm exception handlers
2022-04-20 09:06:42 +02:00
unaligned.c
tree-wide: replace config_enabled() with IS_ENABLED()
2016-08-04 08:50:07 -04:00
uprobes.c
MIPS: uprobes: remove set but not used variable 'epc'
2019-07-10 09:55:29 +02:00
vdso.c
MIPS: math-emu: Write-protect delay slot emulation pages
2019-01-13 10:03:51 +01:00
vmlinux.lds.S
MIPS: vmlinux.lds.S: add missing PAGE_ALIGNED_DATA() section
2021-03-03 17:44:32 +01:00
vpe-cmp.c
MIPS: vpe-cmp: fix possible memory leak while module exiting
2023-01-07 12:07:14 +01:00
vpe-mt.c
MIPS: vpe-mt: fix possible memory leak while module exiting
2023-01-07 12:07:14 +01:00
vpe.c
MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()'
2020-03-11 07:53:06 +01:00
watch.c
MIPS: Add and use watch register field definitions
2016-05-13 14:02:13 +02:00