Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1023524lqp; Fri, 22 Mar 2024 03:20:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoKHz3zSxoMD6O83HJ7VamtElz7s2ypkrQEs2tNpqlZy1loZlT6zEZalyB7Welo7y9T9Z+4Zmk/t/IRbkffomnsff2DmKeN75z00yQ8A== X-Google-Smtp-Source: AGHT+IGb+HMT3mvWxjytRyes9lFEQ0sAfVvcltM1QPmRHuM7PbP3BB/ytCuvQO3gZS2AdyWMjbIv X-Received: by 2002:a05:6358:1297:b0:17c:1bd9:a598 with SMTP id e23-20020a056358129700b0017c1bd9a598mr2137355rwi.29.1711102814630; Fri, 22 Mar 2024 03:20:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711102814; cv=pass; d=google.com; s=arc-20160816; b=LCavRX6GSL05FP5QwmX99P5h0YZr/5UjZwdkBnNLv4cbCFDG38HcZ2WSEzBfmFOMPC yDPUOSxg23ovzReQzicto0pYbAl16jGNeW4l8jUY4IfKtmktqeT0XKfoDazF8Avzv72H TlPiaiu6YD0tOux/smqJ69Fnv+YlDHggz0chi79GQCbPTpE1Ew7XqPy9A/iE81E4pz0W NUUINIOrstYQNmQsjARyA0JwljNuZuDx+U4kUT6FYJ6eDfgbVT56StY8Em2xChTO3Vyg DyLU4wkq3fIan/3Rq477dp0ATVZKl1RXJOzXRVLhqtBp5fWHNa505f/ehRjF2FAVZwip Fhfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=u5i9wDgrXUzVBoSu+pgmA4lE4ak8AYM/4b270iokrxM=; fh=qx7zNZ469n5hZR+ByaWLnM4ApBnw8fYmRGlvV8ERg3E=; b=VPdDV0U99pH8yBwI7BEmQEeTHus/v/aFDHXDFjQpPYpzgpdyObojw+8EZsf6FDWpbY Hq/K4ukpAQkk+wBD6Y7hrhJrc1PtkHbAZz+j9mMymiQjMxSBY3jmU5aBAAhrWPzgg4Td oIOFGYqgNPC44VDsbYz6b0qeWa59aSYH2u2LVdEaIDK1iboz/CqaJnyzBrI9p3weELgI O+c1+FvKq+TusCMWYGB2qM1L52t5CtDGsGhQUJlHCFOnboTOuz1UsWwAgMky845RU8vd 7gZ4G+qYVbaaoFDvUrXaJMXdEW9+PEy9I/dy4736wjz12CqmXXdslbpP/W9qJtbSIprQ KgCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=lNpO+KLo; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-111177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111177-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a12-20020a631a0c000000b005dc10248136si1718686pga.314.2024.03.22.03.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 03:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=lNpO+KLo; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-111177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111177-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E1DA5B23890 for ; Fri, 22 Mar 2024 09:02:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2982320DD2; Fri, 22 Mar 2024 09:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="lNpO+KLo" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96AFA1CA8F for ; Fri, 22 Mar 2024 09:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711098141; cv=none; b=GBNGEsoo3ZUh16qN63i02wGsgreL/Y1YU1guMKXA7J7XiFbpxX7rjiqHkS4XW8H2EpfBOuu/9x2hGGWOZxx87h/CVOSgN/yUjaLm1ZD3a0uSjJMvOGrFnJY851b5wa8s3Dw74ovjn1xf6dyo4xfjFGRpTbOlS97+Bvd+JoWMDSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711098141; c=relaxed/simple; bh=E5xx8AkB9Uw1SS8lYXON8Luw5P4Ejh+PRnNPAv6XJ8M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ozcoZX1GyHRueCKyqAjlxin/r7x5SJ/jZSfMEeS8NGWklzXIyD1vZS75CsRMZOKcxDZdKPelEsPpSo722+Af8r410PwvFx26OclJJQyPVDFX7HN+1yOq0e/CEExxH39OYBWzGn5vtQeBxiQbbJocmhVNdbJxuQfEF4GqiXGXBEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=lNpO+KLo; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-33edbc5932bso1049581f8f.3 for ; Fri, 22 Mar 2024 02:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1711098137; x=1711702937; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=u5i9wDgrXUzVBoSu+pgmA4lE4ak8AYM/4b270iokrxM=; b=lNpO+KLotqumFr+XDt25CUOrdKsIJ0cOVbL3VSilJqg8srjydvPPNRLnBs/PL+d/q1 aH0Jjjnm82E7EZhljDHX02W65vzCfbxs4/YZhm6489YLAbzPJ1mWJZbxhAMwt7u0zi2U z2AhxMo8uaKaTdtwGeG5bwtxVQzHBP94NfYY7NOAyflQ/Ti9Usgu9ypohnwbzQ5I+7ZR pnCLiAmlXk5p6dQ0ERYHNK2fQSLC/SiqyJszsUSKJeAbbJiidx4wxlfn4KYKTYl9ZiHS C8dWan3d5eNmbaxqHyvHXhqVeZ2uBCYB5fB7gAIHqHv9DBBH4vy/Eq/yjGsvuolG8n8K 9gsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711098137; x=1711702937; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u5i9wDgrXUzVBoSu+pgmA4lE4ak8AYM/4b270iokrxM=; b=h3e6bOH+IOHE6UL2hDORlyBtrV+xoIBhYK6ICjm+Q4mW8wn10PITKhXnFTGRoSvv7l ZI1MzpNhMzqQMijIGHcwOFEyEt0sWHkl2Krsa4ruSp09AhkXS9xUqoZGXklKDezQSCVE KdA5MDhoDDAKcjwgzOYwc/ymfQY4QKqIU9J18LfYkC/I/6z6lduTLumo9+VPgSWt0ODh d6U9ofmI6ddwcTz4hL9r+/t3Wu4zbySUl38JmT6kuOVfJ07JDs/otfwSA3IpyynS0Rvl AhBSp4quWSrRt16qdkYCQRGNOvSMqVWljxAJk1ZkQnWeeZWRBbo+Oyi0R66vSvBc8rME HmoA== X-Forwarded-Encrypted: i=1; AJvYcCW9etqn8dl5WlSB6Mb+D9FqDc4Ed3USE1s3M69r8c2waZi4rSqOLT9o/aNwvnAF+wdkRU6rzvFeH1WvrpRJMDrR2T1oy2hGs/TXP03q X-Gm-Message-State: AOJu0YzY7NoJWnse04ln1hommY9tcmTXStMLkauL2c4vwxSvtZcDf7qG oYEjoVMiaqJC0LLTSlHp8JBpmcB9POTQDa7omEfurhSgcHNIFBwpwDR4gbU4izg= X-Received: by 2002:adf:e512:0:b0:341:80ee:22fe with SMTP id j18-20020adfe512000000b0034180ee22femr994077wrm.50.1711098136679; Fri, 22 Mar 2024 02:02:16 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:75a:e000:62f4:4d42:b3de:afa7]) by smtp.gmail.com with ESMTPSA id bq3-20020a5d5a03000000b0033e9f6997c7sm1117144wrb.66.2024.03.22.02.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 02:02:16 -0700 (PDT) From: Bartosz Golaszewski To: Kent Gibson , Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Dobriyan , stable@vger.kernel.org, Stefan Wahren , Bartosz Golaszewski Subject: [PATCH v2] gpio: cdev: sanitize the label before requesting the interrupt Date: Fri, 22 Mar 2024 10:02:08 +0100 Message-Id: <20240322090209.13384-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bartosz Golaszewski When an interrupt is requested, a procfs directory is created under "/proc/irq//