From patchwork Mon Nov 28 13:11:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 699966 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tS6Wb4rvGz9vFb for ; Tue, 29 Nov 2016 00:11:23 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754468AbcK1NLT (ORCPT ); Mon, 28 Nov 2016 08:11:19 -0500 Received: from svenfoo.org ([82.94.215.22]:35298 "EHLO mail.zonque.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753751AbcK1NLS (ORCPT ); Mon, 28 Nov 2016 08:11:18 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.zonque.de (Postfix) with ESMTP id 8F463C00FB; Mon, 28 Nov 2016 14:11:16 +0100 (CET) Received: from mail.zonque.de ([127.0.0.1]) by localhost (rambrand.bugwerft.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m7tg8DWHfXrX; Mon, 28 Nov 2016 14:11:16 +0100 (CET) Received: from localhost.localdomain (unknown [217.246.183.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.zonque.de (Postfix) with ESMTPSA id 1B0E4C0025; Mon, 28 Nov 2016 14:11:16 +0100 (CET) From: Daniel Mack To: ast@fb.com Cc: daniel@iogearbox.net, davem@davemloft.net, netdev@vger.kernel.org, roszenrami@gmail.com, cgroups@vger.kernel.org, Daniel Mack Subject: [PATCH net-next v2] bpf: cgroup: fix documentation of __cgroup_bpf_update() Date: Mon, 28 Nov 2016 14:11:04 +0100 Message-Id: <1480338664-22616-1-git-send-email-daniel@zonque.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There's a 'not' missing in one paragraph. Add it. Signed-off-by: Daniel Mack Reported-by: Rami Rosen Fixes: 3007098494be ("cgroup: add support for eBPF programs") Acked-by: Daniel Borkmann Acked-by: Alexei Starovoitov --- kernel/bpf/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index a0ab43f..8c784f8 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -66,8 +66,8 @@ void cgroup_bpf_inherit(struct cgroup *cgrp, struct cgroup *parent) * Each cgroup has a set of two pointers for bpf programs; one for eBPF * programs it owns, and which is effective for execution. * - * If @prog is %NULL, this function attaches a new program to the cgroup and - * releases the one that is currently attached, if any. @prog is then made + * If @prog is not %NULL, this function attaches a new program to the cgroup + * and releases the one that is currently attached, if any. @prog is then made * the effective program of type @type in that cgroup. * * If @prog is %NULL, the currently attached program of type @type is released,