From patchwork Fri Mar 22 09:02:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 781909 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 96B1B1CA94 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 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: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-33ed5b6bf59so1118878f8f.0 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=PE0JlYLOWZ/uO/OsBDGW9L+3p98kbmd2HLXAnk0DKsEtbeaBEVMaYECkVxyRZgf7x4 PxrPHWB5uPLqegeJbXl9tYEoYhXAK7cvZ+CZnh1CSJx4A3zJIJfBo4m0zQMmGVWqFHiC mDCdIom+dyjqWGQbkPVShWwiUjPln2DEo4fjpoXemaWMyQ8IymzQa/Ol/Kgpsy1HasMA GyGatR8nB8Q0Lfj3bvHaXkTCSLmA7XeMHH0ZbHc63uH8WH6AVoPdElPHMGW0GgVluNK3 PWdjbpA4zU1JsRs/Pmmj1f913OX4lRJi+xRS7DsQk0i6KwYF5hBCAe9JVwl4Jn/8VoU5 lWLg== X-Gm-Message-State: AOJu0Yx58ZCwTURRjMDTZETfcFmxrW4cZxCT7//claQrD89Y5l0ATVgY RiONnAu0lxRbhDuXEy7bn0K0Twg5/baB+JwPzRmxp1pMePU9KUTmHk+PAizs1fw= X-Google-Smtp-Source: AGHT+IE023D1Iv1Q7ddO39alUcgMqmHs3YtMWYZlcQIZY7g4Y+ViW6U0ooyZR0olZKu+FKjXlEINRQ== 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-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski When an interrupt is requested, a procfs directory is created under "/proc/irq//