Commit 9b87d465 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

net: sctp: fix incorrect type in gfp initializer

This fixes the following sparse warning:

  net/sctp/associola.c:1556:29: warning: incorrect type in initializer (different base types)
  net/sctp/associola.c:1556:29:    expected bool [unsigned] [usertype] preload
  net/sctp/associola.c:1556:29:    got restricted gfp_t
Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7288c4d
...@@ -1591,7 +1591,7 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc, ...@@ -1591,7 +1591,7 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc,
/* Set an association id for a given association */ /* Set an association id for a given association */
int sctp_assoc_set_id(struct sctp_association *asoc, gfp_t gfp) int sctp_assoc_set_id(struct sctp_association *asoc, gfp_t gfp)
{ {
bool preload = gfp & __GFP_WAIT; bool preload = !!(gfp & __GFP_WAIT);
int ret; int ret;
/* If the id is already assigned, keep it. */ /* If the id is already assigned, keep it. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment