[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210228151817.95700-2-aahringo@redhat.com>
Date: Sun, 28 Feb 2021 10:18:01 -0500
From: Alexander Aring <aahringo@...hat.com>
To: stefan@...enfreihafen.org
Cc: linux-wpan@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH wpan 01/17] net: ieee802154: make shift exponent unsigned
This patch changes the iftype type variable to unsigned that it can
never be reach a negative value.
Reported-by: syzbot+7bf7b22759195c9a21e9@...kaller.appspotmail.com
Signed-off-by: Alexander Aring <aahringo@...hat.com>
---
net/ieee802154/nl802154.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c
index e9e4652cd592..3ee09f6d13b7 100644
--- a/net/ieee802154/nl802154.c
+++ b/net/ieee802154/nl802154.c
@@ -898,8 +898,8 @@ static int nl802154_get_interface(struct sk_buff *skb, struct genl_info *info)
static int nl802154_new_interface(struct sk_buff *skb, struct genl_info *info)
{
struct cfg802154_registered_device *rdev = info->user_ptr[0];
- enum nl802154_iftype type = NL802154_IFTYPE_UNSPEC;
__le64 extended_addr = cpu_to_le64(0x0000000000000000ULL);
+ u32 type = NL802154_IFTYPE_UNSPEC;
/* TODO avoid failing a new interface
* creation due to pending removal?
--
2.26.2
Powered by blists - more mailing lists