Patch "parport: parport_pc: Mark expected switch fall-through" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    parport: parport_pc: Mark expected switch fall-through

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     parport-parport_pc-mark-expected-switch-fall-through.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit efebd163f0d2aba6b43f62f3a44f46b9e0cdbc5a
Author: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
Date:   Sun Nov 25 21:48:45 2018 +0000

    parport: parport_pc: Mark expected switch fall-through
    
    [ Upstream commit aa1f0fa374ed23528b915a693a11b0f275a299c0 ]
    
    In preparation to enabling -Wimplicit-fallthrough, mark switch cases
    where we are expecting to fall through.
    
    Addresses-Coverity-ID: 114730 ("Missing break in switch")
    Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
    Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx>
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: ab11dac93d2d ("dev/parport: fix the array out-of-bounds risk")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
index c34ad5dd62e3d..1f9908b1d9d6c 100644
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -1667,7 +1667,7 @@ static int parport_ECP_supported(struct parport *pb)
 	default:
 		printk(KERN_WARNING "0x%lx: Unknown implementation ID\n",
 			pb->base);
-		/* Assume 1 */
+		/* Fall through - Assume 1 */
 	case 1:
 		pword = 1;
 	}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux