Guilherme G. Piccoli
8ca31ba8bb
tty: serial: jsm: Remove unnecessary NULL checks
...
After inspection made by Markus using Coccinelle software, he
observed that we could possibly be triggering a NULL pointer
dereference in 2 functions [0].
After discussion in mailing list, it was observed in fact
we have two unnecessary checks for NULL pointer, and they
were leading to Coccinelle warn. So, instead of reworking
the code as proposed by him, we hereby remove the
unnecessary checks, and also some unneeded extra lines in
the code.
These two unnecessary NULL checks were tracked in the call
chain as never NULL, so they can be safely removed.
No functional changes are intended.
[0] https://lkml.org/lkml/2017/11/29/705
Suggested-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-09 16:37:03 +01:00
..
accessibility
acpi
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
2017-12-23 13:47:22 -08:00
amba
android
binder: fix proc->files use-after-free
2017-12-18 15:47:12 +01:00
ata
libata: sata_down_spd_limit should return if driver has not recorded sstatus speed
2017-12-04 13:57:03 -08:00
atm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-11-29 13:10:25 -08:00
auxdisplay
auxdisplay: img-ascii-lcd: Only build on archs that have IOMEM
2017-11-27 12:36:45 -08:00
base
Driver core fixes for 4.15-rc6
2017-12-31 10:50:05 -08:00
bcma
block
null_blk: unalign call_single_data
2017-12-20 13:16:33 -07:00
bluetooth
bus
bus: arm-ccn: fix module unloading Error: Removing state 147 which has instances left.
2017-12-04 17:15:20 +00:00
cdrom
char
The big changes for IPMI that just went in had a few problems. These
2017-12-11 17:01:59 -08:00
clk
clk: use atomic runtime pm api in clk_core_is_enabled
2017-12-26 17:34:03 -08:00
clocksource
connector
cpufreq
cpufreq: governor: Ensure sufficiently large sampling intervals
2017-12-18 12:09:39 +01:00
cpuidle
crypto
dax
device-dax: implement ->split() to catch invalid munmap attempts
2017-11-29 18:40:42 -08:00
dca
devfreq
dio
dma
dmaengine: fsl-edma: disable clks on all error paths
2017-12-15 09:53:04 +05:30
dma-buf
edac
eisa
extcon
firewire
firmware
ARM: SoC fixes for 4.15-rc
2017-12-10 08:26:59 -08:00
fmc
fpga
fsi
gpio
genirq/irqdomain: Rename early argument of irq_domain_activate_irq()
2017-12-29 21:13:04 +01:00
gpu
Merge tag 'drm-intel-fixes-2017-12-22-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
2017-12-28 05:20:07 +10:00
hid
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
2017-12-30 10:16:51 -08:00
hsi
hv
vmbus: unregister device_obj->channels_kset
2017-12-18 15:47:12 +01:00
hwmon
hwmon: Deal with errors from the thermal subsystem
2017-12-26 11:53:24 -08:00
hwspinlock
hwtracing
tracing: Pass export pointer as argument to ->write()
2017-12-04 07:14:30 -05:00
i2c
i2c: piix4: Fix port number check on release
2017-12-12 23:27:04 +01:00
ide
idle
iio
iio: health: max30102: Temperature should be in milli Celsius
2017-12-02 11:15:14 +00:00
infiniband
Third pull request for 4.15-rc
2017-12-28 23:06:01 -08:00
input
iommu
genirq/irqdomain: Rename early argument of irq_domain_activate_irq()
2017-12-29 21:13:04 +01:00
ipack
irqchip
genirq/irqdomain: Rename early argument of irq_domain_activate_irq()
2017-12-29 21:13:04 +01:00
isdn
leds
led: core: Fix brightness setting when setting delay_off=0
2017-12-27 20:45:07 +01:00
lightnvm
macintosh
mailbox
mcb
md
- Fix a particularly nasty DM core bug in a 4.15 refcount_t conversion.
2017-12-15 12:53:37 -08:00
media
media fixes for v4.15-rc3
2017-12-08 13:18:47 -08:00
memory
memstick
message
mfd
kernel/irq: Extend lockdep class for request mutex
2017-12-28 12:26:35 +01:00
misc
Merge branch 'WIP.x86-pti.base.prep-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-12-17 13:54:31 -08:00
mmc
mmc: core: apply NO_CMD23 quirk to some specific cards
2017-12-11 13:43:27 +01:00
mtd
mtd: Fix mtd_check_oob_ops()
2017-12-18 09:16:35 +01:00
mux
net
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-12-28 23:20:21 -08:00
nfc
ntb
nubus
nvdimm
libnvdimm, btt: Fix an incompatibility in the log layout
2017-12-21 14:59:27 -08:00
nvme
nvme: setup streams after initializing namespace head
2017-12-15 15:18:07 +01:00
nvmem
nvmem: meson-mx-efuse: fix reading from an offset other than 0
2017-12-23 16:46:23 +01:00
of
of_mdio / mdiobus: ensure mdio devices have fwnode correctly populated
2017-12-13 15:01:47 -05:00
opp
oprofile
parisc
parisc: Hide Diva-built-in serial aux and graphics card
2017-12-17 21:06:25 +01:00
parport
pci
Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-12-31 13:13:56 -08:00
pcmcia
perf
phy
phy: rcar-gen3-usb2: select USB_COMMON
2017-12-15 16:00:41 +05:30
pinctrl
genirq/irqdomain: Rename early argument of irq_domain_activate_irq()
2017-12-29 21:13:04 +01:00
platform
platform/x86: dell-wmi: check for kmalloc() errors
2017-12-11 17:26:03 -08:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-25 08:37:16 -10:00
s390
s390/qeth: fix error handling in checksum cmd callback
2017-12-20 15:11:49 -05:00
sbus
scsi
SCSI fixes on 20171230
2017-12-30 14:31:30 -08:00
sfi
sh
sn
soc
meson-gx-socinfo: Fix package id parsing
2017-11-30 15:29:44 -08:00
spi
Merge remote-tracking branches 'spi/fix/armada', 'spi/fix/atmel', 'spi/fix/doc', 'spi/fix/imx', 'spi/fix/rspi', 'spi/fix/sun4i' and 'spi/fix/xilinx' into spi-linus
2017-12-19 11:07:00 +00:00
spmi
ssb
staging
staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device
2017-12-19 15:53:39 +01:00
target
block: fix blk_rq_append_bio
2017-12-18 13:55:43 -07:00
tc
tee
optee: fix invalid of_node_put() in optee_driver_init()
2017-11-29 10:24:57 +01:00
thermal
thunderbolt
thunderbolt: Mask ring interrupt properly when polling starts
2017-12-16 16:37:51 +01:00
tty
tty: serial: jsm: Remove unnecessary NULL checks
2018-01-09 16:37:03 +01:00
uio
usb
usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201
2017-12-27 15:24:27 +01:00
uwb
vfio
vhost
vhost: fix skb leak in handle_rx()
2017-12-02 21:31:03 -05:00
video
virt
virtio
virtio_mmio: fix devm cleanup
2017-12-14 21:01:40 +02:00
vlynq
vme
w1
watchdog
xen
xen: fixes for 4.15-rc5
2017-12-22 12:30:10 -08:00
zorro
Kconfig
Makefile
usb: build drivers/usb/common/ when USB_SUPPORT is set
2017-11-28 15:17:49 +01:00