Skip to content

Commit cdc87c5

Browse files
Alan-Coxrafaeljw
authored andcommitted
pnpacpi: fix incorrect TEST_ALPHA() test
TEST_ALPHA() is broken and always returns 0. [akpm@linux-foundation.org: return false for '@' as well, per Bjorn] Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 129ff8f commit cdc87c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pnp/pnpacpi/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static inline int __init is_exclusive_device(struct acpi_device *dev)
5858
if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \
5959
return 0
6060
#define TEST_ALPHA(c) \
61-
if (!('@' <= (c) || (c) <= 'Z')) \
61+
if (!('A' <= (c) && (c) <= 'Z')) \
6262
return 0
6363
static int __init ispnpidacpi(const char *id)
6464
{

0 commit comments

Comments
 (0)