From: Sage Weil Date: Thu, 12 May 2011 22:34:24 +0000 (-0700) Subject: libceph: add missing breaks in addr_set_port X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2a79609c044d3ddb540671d5029a41c90c57251;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git libceph: add missing breaks in addr_set_port Signed-off-by: Sage Weil --- diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 35c0000a658e..78b55f49de7c 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -1073,8 +1073,10 @@ static void addr_set_port(struct sockaddr_storage *ss, int p) switch (ss->ss_family) { case AF_INET: ((struct sockaddr_in *)ss)->sin_port = htons(p); + break; case AF_INET6: ((struct sockaddr_in6 *)ss)->sin6_port = htons(p); + break; } }