linux-stable/drivers/block
Yufen Yu 489a9abf60 floppy: check_events callback should not return a negative number
[ Upstream commit 96d7cb932e ]

floppy_check_events() is supposed to return bit flags to say which
events occured. We should return zero to say that no event flags are
set.  Only BIT(0) and BIT(1) are used in the caller. And .check_events
interface also expect to return an unsigned int value.

However, after commit a0c80efe59, it may return -EINTR (-4u).
Here, both BIT(0) and BIT(1) are cleared. So this patch shouldn't
affect runtime, but it obviously is still worth fixing.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: a0c80efe59 ("floppy: fix lock_fdc() signal handling")
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-23 13:19:41 +01:00
..
aoe aoe: fix crash in page count manipulation 2016-11-12 08:27:07 -07:00
drbd drbd: skip spurious timeout (ping-timeo) when failing promote 2019-02-12 19:44:56 +01:00
mtip32xx Revert "mtip32xx: use runtime tag to initialize command header" 2018-04-08 12:13:01 +02:00
paride cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:50:47 +02:00
rsxx block: convert to device_add_disk() 2016-06-27 12:26:08 -07:00
xen-blkback xen/blkback: don't free be structure too early 2017-07-05 14:40:20 +02:00
zram zram: close udev startup race condition as default groups 2018-11-27 16:09:40 +01:00
DAC960.c block: DAC960: print a hex number after a 0x prefix 2016-10-27 18:43:43 -07:00
DAC960.h
Kconfig cpqarray: remove it from the kernel 2016-03-14 09:06:01 -06:00
Makefile drivers:block: cpqarray clean up 2016-03-15 15:59:47 -07:00
amiflop.c
ataflop.c ataflop: fix error handling during setup 2018-11-13 11:16:49 -08:00
brd.c block/mm: make bdev_ops->rw_page() take a bool for read/write 2016-08-07 14:41:02 -06:00
cciss.c block: convert to device_add_disk() 2016-06-27 12:26:08 -07:00
cciss.h
cciss_cmd.h
cciss_scsi.c scsi: Do not set cmd_per_lun to 1 in the host template 2015-05-31 18:06:28 -07:00
cciss_scsi.h
cryptoloop.c block: cryptoloop - Use new skcipher interface 2016-01-27 20:35:43 +08:00
floppy.c floppy: check_events callback should not return a negative number 2019-03-23 13:19:41 +01:00
hd.c
loop.c Revert "loop: Fold __loop_release into loop_release" 2019-03-05 17:57:03 +01:00
loop.h block/loop: Use global lock for ioctl() operation. 2019-01-23 08:10:56 +01:00
mg_disk.c mg_disk: fix error path in mg_probe() 2016-06-28 11:01:27 -06:00
nbd.c nbd: Use set_blocksize() to set device blocksize 2019-01-23 08:10:57 +01:00
null_blk.c Merge branch 'for-4.9/block-irq' of git://git.kernel.dk/linux-block 2016-10-09 17:29:33 -07:00
osdblk.c block, drivers: add REQ_OP_FLUSH operation 2016-06-07 13:41:38 -06:00
pktcdvd.c pktcdvd: Fix pkt_setup_dev() error path 2018-02-17 13:21:19 +01:00
ps3disk.c block: convert to device_add_disk() 2016-06-27 12:26:08 -07:00
ps3vram.c block: convert to device_add_disk() 2016-06-27 12:26:08 -07:00
rbd.c rbd: don't return 0 on unmap if RBD_DEV_FLAG_REMOVING is set 2019-01-16 22:12:32 +01:00
rbd_types.h rbd: support for exclusive-lock feature 2016-08-24 23:49:16 +02:00
skd_main.c skd: Submit requests to firmware before triggering the doorbell 2017-09-27 14:39:21 +02:00
skd_s1120.h
smart1,2.h
sunvdc.c sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN 2019-02-12 19:44:53 +01:00
swim.c swim: fix cleanup on setup error 2018-11-13 11:16:49 -08:00
swim3.c block/swim3: Fix -EBUSY error when re-opening device after unmount 2019-02-12 19:44:58 +01:00
swim_asm.S
sx8.c sx8: use real time for the command seconds 2015-12-23 08:42:59 -07:00
umem.c block: rename bio bi_rw to bi_opf 2016-08-07 14:41:02 -06:00
umem.h
virtio_blk.c virtio_blk: fix panic in initialization error path 2017-08-11 08:49:36 -07:00
xen-blkfront.c xen/blkfront: avoid NULL blkfront_info dereference on device removal 2018-11-13 11:16:54 -08:00
xsysace.c
z2ram.c