original_kernel/drivers/block
Dan Carpenter 49c2856af7 pktcdvd: debugfs functions return NULL on error
My static checker complains correctly that this is potential NULL
dereference because debugfs functions return NULL on error.  They return
an ERR_PTR if they are configured out.

We don't need to check for ERR_PTR because if debugfs is stubbed out the
dummy functions won't complain about that.  We don't need to check the
values before calling debugfs_remove() because that accepts ERR_PTRs and
NULL pointers.

We don't need to set pkt->dfs_f_info to NULL in pkt_debugfs_dev_new()
because it was initialized with kzalloc() so I have removed that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2013-11-08 09:10:31 -07:00
..
aoe
drbd
mtip32xx
paride
rsxx
xen-blkback
DAC960.c
DAC960.h
Kconfig
Makefile
amiflop.c
ataflop.c
brd.c
cciss.c cciss: return 0 from driver probe function on success, not 1 2013-11-08 09:10:29 -07:00
cciss.h
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cpqarray.c
cpqarray.h
cryptoloop.c
floppy.c
hd.c
ida_cmd.h
ida_ioctl.h
loop.c
loop.h
mg_disk.c
nbd.c
nvme-core.c
nvme-scsi.c
osdblk.c
pktcdvd.c pktcdvd: debugfs functions return NULL on error 2013-11-08 09:10:31 -07:00
ps3disk.c
ps3vram.c
rbd.c
rbd_types.h
skd_main.c skd: reorder construct/destruct code 2013-11-08 09:10:30 -07:00
skd_s1120.h skd: fix formatting in skd_s1120.h 2013-11-08 09:10:30 -07:00
smart1,2.h
sunvdc.c
swim.c
swim3.c
swim_asm.S
sx8.c
umem.c
umem.h
virtio_blk.c
xen-blkfront.c xen-blkfront: restore the non-persistent data path 2013-11-08 09:10:30 -07:00
xsysace.c
z2ram.c