Message ID | 1513029033-9087-9-git-send-email-gvrose8192@gmail.com |
---|---|
State | Changes Requested |
Delegated to: | Justin Pettit |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i1+ASp8+"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ywcGM0s0Xz9sxR for <incoming@patchwork.ozlabs.org>; Tue, 12 Dec 2017 08:55:55 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 3DC15DAD; Mon, 11 Dec 2017 21:51:11 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 44703D9B for <dev@openvswitch.org>; Mon, 11 Dec 2017 21:51:09 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B27D5515 for <dev@openvswitch.org>; Mon, 11 Dec 2017 21:51:08 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id q20so11894723pgv.2 for <dev@openvswitch.org>; Mon, 11 Dec 2017 13:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PLKuuZJ5j6YBFE2Q3lYJlpfGcS+rx73GzEucZQl3MRI=; b=i1+ASp8+tXl5XjZF+QLtTTIZqK0HUPdsZ8bEHRMVyXerngk4eez3ec5OaJqLyHGRss 4BfPtfK2wmNDF1RCIN++EH9EqWVnpXbA1Di5I5+zPn8wJR0t0CKKQUbCnLlYBuiD833i Xsf0xAFHUIHHkLA6n3D1QqaAPIba/+Lw5WiQA6II+kJNtY2DOSPGCrPQMWHC5oAe39lV DeAKF4oIx6PgrQEZvD71EzujbjPYkxWtqmIzaloIlcKbvi+E7XxQ6nZnZu5trnnWNPxG Fhd7CzPqmIxi6CRUUIyIP2JPSYxGGosfove9ttb1QOE+J76EEyqqMhSkh5iV6TO/OdOW w1LQ== 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:in-reply-to :references; bh=PLKuuZJ5j6YBFE2Q3lYJlpfGcS+rx73GzEucZQl3MRI=; b=l7x2CGxxu0gkliSUOrZnCNiC96/Z/ome6D8RKzC557LD7L9JtTE7H8M4pWpPBF82EB DyBuEz/LEaXQb5rj+PakEXkqxq3MBJ4+ItGOg7xcz+Z1LYz6spIjsUpKuwG4JKtpXJbt n97jZ6f82XXHtzL0HZAgQOYI4QSKa+DEZhbVTGIt39CTSr9Ls4w0eNaBhYVSjrlRSfnc Ob2VWIWPcwSAM8iKfggucd9baXhcUUsWMtxVGC1249MyPAClHFb7b+Yc4FkBowC2khmb 0Nhfudi6a4/uVUZU6Y/27Sm3a5mxO35C6JyGH1/v4juuo5HLm2pG3oeZDG4OznWEKsFV y+Hg== X-Gm-Message-State: AKGB3mK/jE+PzR5ZX95nPuEOIpJ13wc4Flc6pzXK0a3iJwsVcAS00tVV 1XJlbwpOq8Cb4HaflHZ6OGCpIKBu X-Google-Smtp-Source: ACJfBouZiaGgUjbqQL+gHvRqw2M803UWD3jHAPtmtcMuZhlqQkqeIqNU9Ou/O3zrzx+VZ2QJKE6T5Q== X-Received: by 10.99.117.83 with SMTP id f19mr1489866pgn.255.1513029067976; Mon, 11 Dec 2017 13:51:07 -0800 (PST) Received: from gizo.domain (67-5-143-47.ptld.qwest.net. [67.5.143.47]) by smtp.gmail.com with ESMTPSA id c185sm25572799pfb.48.2017.12.11.13.51.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 13:51:06 -0800 (PST) From: Greg Rose <gvrose8192@gmail.com> To: dev@openvswitch.org Date: Mon, 11 Dec 2017 13:50:29 -0800 Message-Id: <1513029033-9087-9-git-send-email-gvrose8192@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1513029033-9087-1-git-send-email-gvrose8192@gmail.com> References: <1513029033-9087-1-git-send-email-gvrose8192@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com> Subject: [ovs-dev] [PATCH 08/12] datapath: meter: fix NULL pointer dereference in ovs_meter_cmd_reply_start X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
Series |
Backport upstream Linux OVS patches
|
expand
|
diff --git a/datapath/meter.c b/datapath/meter.c index 52ddd6c..3fbfc78 100644 --- a/datapath/meter.c +++ b/datapath/meter.c @@ -99,7 +99,7 @@ ovs_meter_cmd_reply_start(struct genl_info *info, u8 cmd, *ovs_reply_header = genlmsg_put(skb, info->snd_portid, info->snd_seq, &dp_meter_genl_family, 0, cmd); - if (!ovs_reply_header) { + if (!*ovs_reply_header) { nlmsg_free(skb); return ERR_PTR(-EMSGSIZE); }