Skip to content

Commit 82aaf4f

Browse files
One Thousand Gnomesdavem330
authored andcommitted
af_llc: fix types on llc_ui_wait_for_conn
The timeout is a long, we return it truncated if it is huge. Basically harmless as the only caller does a boolean check, but tidy it up anyway. (64bit build tested this time. Thank you 0day) Signed-off-by: Alan Cox <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fc48b7a commit 82aaf4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/llc/af_llc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static u16 llc_ui_sap_link_no_max[256];
3838
static struct sockaddr_llc llc_ui_addrnull;
3939
static const struct proto_ops llc_ui_ops;
4040

41-
static int llc_ui_wait_for_conn(struct sock *sk, long timeout);
41+
static long llc_ui_wait_for_conn(struct sock *sk, long timeout);
4242
static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
4343
static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
4444

@@ -551,7 +551,7 @@ static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
551551
return rc;
552552
}
553553

554-
static int llc_ui_wait_for_conn(struct sock *sk, long timeout)
554+
static long llc_ui_wait_for_conn(struct sock *sk, long timeout)
555555
{
556556
DEFINE_WAIT(wait);
557557

0 commit comments

Comments
 (0)