Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3261159imm; Sun, 13 May 2018 07:35:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrAyReRzFGNNTJW7yabzDhost27qs+zQkERhVwLHtM43vKTUkxBy9HUl5eeSXMncW5myf6r X-Received: by 2002:a62:3745:: with SMTP id e66-v6mr6711741pfa.43.1526222111825; Sun, 13 May 2018 07:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526222111; cv=none; d=google.com; s=arc-20160816; b=HKgaddMCToFcliJ0x0ZlYSY/itgKgdgt5VWMuVXsCG/co2l/axKhmDKE7rLohF9qLw PJ5UEYFHjPuOMJ7MJLwjy22GGjVNkHFs/z5LPvks178LagS+uqbx4SkBo29vIOclxYb0 xMfRDdokpFRCZfSIRM2t7rig2YWbKEahs7ucWB7zVxvauoPoREkZJVsttJnahlz4pCmA s3WkMUnhZ093Xvl5srjPBo1qIViMiehoRrKNJ/Z7nZ0+XoG2ncfMMlatbTrrzkbvkybU 8+3XmBVWFNo/I9yVNUKihHektaASOjNQIhFkWgZyzILHxZQMdkKUMLiPdQbvtcTFwCHj spgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AozWz5xWVE2LadIGHxkfroCdZUNZIW1P9RA56JGj0GA=; b=YDu1UsqVGYSWz0x46SQ2avWkvKi+unKROEVL+8S2I6U1nvE2juC2ufK4Rq9sDOB7YB 6ro2m7XTMqvFhbI1TKNnF8WE92XjWhDiYvRung7Dd2jG8I5W3xE4Oy/bECto4aabKYDF suQ7SOpcEYv07C9IL6BAFV5S3Lmvgw5Vd5S7H7sB5DAdcs81K+rydJjGZoXhp59ZXIWS U7OqZcc9OwPzOlNIYLxi+SQ2C1VPI9724MeJp6kekRpOeUIxIU5+zpMtKjGhlZY56kZp Cez/U3uKURNGR2Ohpg+8Gp77g1agZMW2YKNN9TB19r43V4Mh1iauSFrA6F7Hw8bq4hEY F6AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s0Y0+Yf4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c86-v6si7872719pfl.319.2018.05.13.07.34.56; Sun, 13 May 2018 07:35:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s0Y0+Yf4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbeEMOeq (ORCPT + 99 others); Sun, 13 May 2018 10:34:46 -0400 Received: from mail-qt0-f169.google.com ([209.85.216.169]:44712 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751338AbeEMOeo (ORCPT ); Sun, 13 May 2018 10:34:44 -0400 Received: by mail-qt0-f169.google.com with SMTP id d3-v6so13036867qtp.11; Sun, 13 May 2018 07:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AozWz5xWVE2LadIGHxkfroCdZUNZIW1P9RA56JGj0GA=; b=s0Y0+Yf4Qn0LKT0K/JvMm9Tq9vFxiu8eZOd4pDaMBGDNxeKP7TDPuvf88m2pk54FcW nERZBbNv7/+/zbSMUQ1eBXG9s6cvwKLSzIjJlAbxoIADWIrCq1lCeCORYv644RBEp2/u bykgCFFYfUEuAfeXVY23O10NW9hNifjtBm4PgTWihOpPiZ5w/kgDkvhtXKerjzl9ffGP N//Sow1RAQ9gfv5838ElNHVcI8VGfGP9o6QCPW5q8gQuO8Tmcj8U9oys8FAjI/MQCJhg BpgzXUJwN0CLy5EMVdURCsbCDs6vqhZvuhOraFj2idmWbFQX1wWtrEPmgNgc2uRBIDU6 hYpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AozWz5xWVE2LadIGHxkfroCdZUNZIW1P9RA56JGj0GA=; b=GiYG98l/WK4DoPXuXhtM0l3Zv2L2VU1HdOibJrO+9K7GPFCs+2vtYESEIZEOrEcUD8 00YyleYhveIabjJ4enddLaanTUmueG2GsDt2qusx+mOXRivwFG0sz1SXygVoKBOX6lMn T61Y5ncDOaZrLsfIjEkgJs+csgqTYzHOyJ7v3phD83tJLp55FTGWDmfRSM5bp0Kupx1r ToZGoX85SDDO9uCs/2pppvc/hCdcoRe+jgwQHivk1h5juux43SArt1so23jn0nBmAkqo tDISfPg25p3LIppE6IHyfK62XbULchuEVsqCZ4K+hmRn/oF/UtZMD5Cpb5AHE8R47AJL P+QQ== X-Gm-Message-State: ALKqPwcuMcffqwJqEBVEC2wE7PhZcrSeFH9q0Td1K0FtNjW+Gy/9zOLy 6tjwZNU4CoV8vm2MX3Aapm+2OKZ3iLDP3xh8ePr7KA== X-Received: by 2002:aed:3dcb:: with SMTP id j11-v6mr5163283qtf.404.1526222083112; Sun, 13 May 2018 07:34:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Sun, 13 May 2018 07:34:42 -0700 (PDT) In-Reply-To: <20180510112229.GE6977@amd> References: <20180508100543.12559-1-u.kleine-koenig@pengutronix.de> <20180508100543.12559-2-u.kleine-koenig@pengutronix.de> <20180510112101.GD6977@amd> <20180510112229.GE6977@amd> From: Andy Shevchenko Date: Sun, 13 May 2018 17:34:42 +0300 Message-ID: Subject: Re: [PATCH v3 1/3] leds: triggers: provide led_trigger_register_format() To: Pavel Machek Cc: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Greg Kroah-Hartman , Jiri Slaby , Johan Hovold , Jacek Anaszewski , "open list:SERIAL DRIVERS" , Linux LED Subsystem , linux-can@vger.kernel.org, Sascha Hauer , One Thousand Gnomes , Florian Fainelli , Mathieu Poirier , Linux Kernel Mailing List , Robin Murphy , linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 10, 2018 at 2:22 PM, Pavel Machek wrote: > On Thu 2018-05-10 13:21:01, Pavel Machek wrote: >> I know this is not your fault, but if you have a space or "[]" in >> netdev names, confusing things will happen. > > Hmm. If we are doing this we really should check trigger names for > forbidden characters. At least "[] " should be forbidden. So, string_escape_mem() is your helper here. -- With Best Regards, Andy Shevchenko