From patchwork Thu Apr 19 20:53:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 10351581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 64BFC6023A for ; Thu, 19 Apr 2018 20:53:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 570F32853A for ; Thu, 19 Apr 2018 20:53:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BA5F28565; Thu, 19 Apr 2018 20:53:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8297E2853A for ; Thu, 19 Apr 2018 20:53:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753449AbeDSUxX (ORCPT ); Thu, 19 Apr 2018 16:53:23 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:39700 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752725AbeDSUxX (ORCPT ); Thu, 19 Apr 2018 16:53:23 -0400 Received: by mail-io0-f195.google.com with SMTP id v13-v6so8190713iob.6 for ; Thu, 19 Apr 2018 13:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=3rPADd5IMTXVRMgvbQq9Clwl3A0ExRtwF4/TZhizOWo=; b=ZaEFtPIZNmg2T2Zmexwf+L4N/8+aJXJk1hT7GtSWksrfmGaB7eT2MpHnlwtxT7eCbS noiNKjQiDa4P3FAFtfuOM+jK6xCBcR+FImXkT6ONBik1FBXQwKkMT4TWuFRLcknm2RcN DMMZfy1gO0+laaKsohB1KEt6f0Xlweoe+ix8zbnOAs8otl4gog6q3sGgbmZ/n+gPSDw2 hSZvAyFY2x4HhZduSiaaobeIKdcb7cpxIPUYlP5T04upLqM6uR4x3pvzSzwJQfL7fTJr /DTxzYVs2O1zmdgYxuq6ONacdPI/IeTdluV/hyIECbhVCfeyIwgOMxJV9oRi2c212gOI TczQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3rPADd5IMTXVRMgvbQq9Clwl3A0ExRtwF4/TZhizOWo=; b=rfitp+p/tGPs5Fo/28eOep7HmAHBMM0PCmDwbBxI3kFUBLgiq+yku/Kdsrke36rfXU N36nNUXHpojQcrNXcgZUCDOeUHcso0vZmFhEZcSvULevQHBHE0IMyZEGpV9jw4Ro5Nzm YsWf2Y7XLy3iDAdg23vKnv2YeiHNiJ83wanScdgJwLhdzwDGUkqFnG6PACcfWQahiyZu 8VvCq9XmybXG4bpqWRN3IhRUpbApykMnfGG/DEmfEwPpDjpzoqo6kuNXMiUL935dyqDw c9bqlvvMFXPwUQEQfns83S7qO+iYC57moe7LwxYCK1FebFAAyNpgFICXORwkLTxxW7/X lGlw== X-Gm-Message-State: ALQs6tBMZwZfooGIgEpPEXycmtgZoycIgMA+ecZhX7U30xo44T2Tlmfb Gf036hCXblTFBkZ0mhtlPpM+E6qw X-Google-Smtp-Source: AB8JxZr+y0bNdYP9Oajcvt+ikiEu3cjgrUsLYcRTGLmzdrLKPzpZhFtG1/My35SYxxr5ApgiSG5Zqw== X-Received: by 2002:a6b:3592:: with SMTP id k18-v6mr8666456ioo.292.1524171202508; Thu, 19 Apr 2018 13:53:22 -0700 (PDT) Received: from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id c77-v6sm2282060ioc.16.2018.04.19.13.53.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 13:53:22 -0700 (PDT) From: Alexander Aring To: stefan@osg.samsung.com Cc: linux-wpan@vger.kernel.org, eric.dumazet@gmail.com, kernel@mojatatu.com, Alexander Aring Subject: [PATCH wpan] net: cfg802154: mark ieee802154_addr as packed Date: Thu, 19 Apr 2018 16:53:03 -0400 Message-Id: <20180419205303.30035-1-aring@mojatatu.com> X-Mailer: git-send-email 2.11.0 Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch marks ieee802154_addr as packed as it used by memcmp to compare this struct for rhashtable in fragmentation api. Fixes: 648700f76b03 ("inet: frags: use rhashtables for reassembly units") Reported-by: Stefan Schmidt Signed-off-by: Alexander Aring --- include/net/cfg802154.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h index 795ca4008f72..fc5dab9c798e 100644 --- a/include/net/cfg802154.h +++ b/include/net/cfg802154.h @@ -242,7 +242,7 @@ struct ieee802154_addr { __le16 short_addr; __le64 extended_addr; }; -}; +} __packed; struct ieee802154_llsec_key_id { u8 mode;