From patchwork Mon Nov 28 11:04:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 699932 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 3tS3k75mZDz9tkH for ; Mon, 28 Nov 2016 22:05:19 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932646AbcK1LFM (ORCPT ); Mon, 28 Nov 2016 06:05:12 -0500 Received: from svenfoo.org ([82.94.215.22]:34285 "EHLO mail.zonque.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932094AbcK1LFJ (ORCPT ); Mon, 28 Nov 2016 06:05:09 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.zonque.de (Postfix) with ESMTP id 71F40C00BF; Mon, 28 Nov 2016 12:05:07 +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 KYfA8-bo6x5y; Mon, 28 Nov 2016 12:05:07 +0100 (CET) Received: from localhost.localdomain (pD9F6B7EE.dip0.t-ipconnect.de [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 E701CC0025; Mon, 28 Nov 2016 12:05:06 +0100 (CET) From: Daniel Mack To: ast@fb.com Cc: davem@davemloft.net, netdev@vger.kernel.org, roszenrami@gmail.com, cgroups@vger.kernel.org, Daniel Mack Subject: [PATCH] bpf: cgroup: fix documentation of __cgroup_bpf_update() Date: Mon, 28 Nov 2016 12:04:59 +0100 Message-Id: <1480331099-20216-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") --- kernel/bpf/cgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index a0ab43f..b708e6e 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -70,9 +70,9 @@ void cgroup_bpf_inherit(struct cgroup *cgrp, struct cgroup *parent) * 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, - * and the effective program of the parent cgroup (if any) is inherited to - * @cgrp. + * If @prog is not %NULL, the currently attached program of type @type is + * released, and the effective program of the parent cgroup (if any) is + * inherited to @cgrp. * * Then, the descendants of @cgrp are walked and the effective program for * each of them is set to the effective program of @cgrp unless the