No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Colin Ian King 3d378dc713 kobject: fix dereference before null check on kobj
The kobj pointer is being null-checked so potentially it could be null,
however, the ktype declaration before the null check is dereferencing kobj
hence we have a potential null pointer deference. Fix this by moving the
assignment of ktype after kobj has been null checked.

Addresses-Coverity: ("Dereference before null check")
Fixes: aa30f47cf6 ("kobject: Add support for default attribute groups to kobj_type")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-01 15:08:38 +02:00
arch
block block: Replace all ktype default_attrs with groups 2019-04-25 22:06:11 +02:00
certs
crypto
Documentation
drivers Revert "driver core: platform: Fix the usage of platform device name(pdev->name)" 2019-04-29 19:49:21 +02:00
fs
include kobject: Add support for default attribute groups to kobj_type 2019-04-25 22:06:10 +02:00
init init/config: Do not select BUILD_BIN2C for IKCONFIG 2019-04-29 16:48:04 +02:00
ipc
kernel Provide in-kernel headers to make extending kernel easier 2019-04-29 16:48:03 +02:00
lib kobject: fix dereference before null check on kobj 2019-05-01 15:08:38 +02:00
LICENSES
mm
net net-sysfs: Replace ktype default_attrs field with groups 2019-04-25 22:06:11 +02:00
samples samples/kobject: Replace foo_ktype's default_attrs field with groups 2019-04-25 22:06:10 +02:00
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
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.