Go to file
Yang Yingliang 5ca86eae55 macintosh: fix possible memory leak in macio_add_one_device()
Afer commit 1fa5ae857b ("driver core: get rid of struct device's
bus_id string array"), the name of device is allocated dynamically. It
needs to be freed when of_device_register() fails. Call put_device() to
give up the reference that's taken in device_initialize(), so that it
can be freed in kobject_cleanup() when the refcount hits 0.

macio device is freed in macio_release_dev(), so the kfree() can be
removed.

Fixes: 1fa5ae857b ("driver core: get rid of struct device's bus_id string array")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221104032551.1075335-1-yangyingliang@huawei.com
2022-11-24 23:12:18 +11:00
arch RISC-V: 2022-10-23 15:00:43 -07:00
block
certs
crypto
Documentation hwmon fixes for v6.1-rc2 2022-10-22 16:04:34 -07:00
drivers macintosh: fix possible memory leak in macio_add_one_device() 2022-11-24 23:12:18 +11:00
fs
include Merge branch i2c/client_device_id_helper-immutable of wsa/linux into next 2022-11-24 23:11:26 +11:00
init
io_uring
ipc
kernel kernel/utsname_sysctl.c: Fix hostname polling 2022-10-23 12:01:01 -07:00
lib
LICENSES
mm
net io_uring-6.1-2022-10-22 2022-10-23 09:55:50 -07:00
rust
samples
scripts
security
sound
tools RISC-V: 2022-10-23 15:00:43 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 6.1-rc2 2022-10-23 15:27:33 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.