Patch "thunderbolt: Remove superfluous check" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
thunderbolt: Remove superfluous check
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
thunderbolt-remove-superfluous-check.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
8fdd6ab36197ad891233572c57781b1f537da0acMon Sep 17 00:00:00 2001
From: "Bernat, Yehezkel" <[email protected]>
Date: Tue, 15 Aug 2017 08:19:01 +0300
Subject: thunderbolt: Remove superfluous check
From: Bernat, Yehezkel <[email protected]>
commit 8fdd6ab36197ad891233572c57781b1f537da0ac upstream.
The key size is tested by hex2bin() already (as '\0' isn't an hex digit)
--- drivers/thunderbolt/switch.c | 3 --- 1 file changed, 3 deletions(-)
drivers/thunderbolt/switch.c +0 -3
@@ -808,9 +808,6 @@ static ssize_t key_store(struct device *u8 key[TB_SWITCH_KEY_SIZE ];ssize_t ret = count; -if (count <64 ) -return -EINVAL ; -if (hex2bin (key, buf,sizeof (key)))return -EINVAL ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/thunderbolt-make-key-root-only-accessible.patch queue-4.13/thunderbolt-remove-superfluous-check.patch queue-4.13/thunderbolt-allow-clearing-the-key.patch