]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ptp: fix missing break in switch
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 18 Jul 2018 01:17:33 +0000 (20:17 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Feb 2019 04:53:01 +0000 (04:53 +0000)
commit2a9e5ac29e889475ac3356e55fcba7f5b24d6f41
treef213c99f932e9b2ac4de3da20ce997194d1d5a36
parent606643ac057e833c68a1d9fe611f351b684c6e70
ptp: fix missing break in switch

BugLink: http://bugs.launchpad.net/bugs/1812229
[ Upstream commit 9ba8376ce1e2cbf4ce44f7e4bee1d0648e10d594 ]

It seems that a *break* is missing in order to avoid falling through
to the default case. Otherwise, checking *chan* makes no sense.

Fixes: 72df7a7244c0 ("ptp: Allow reassigning calibration pin function")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/ptp/ptp_chardev.c