Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-and-tested-by: syzbot+fcc629d1a1ae8d3fe8a5@xxxxxxxxxxxxxxxxxxxxxxxxx Tested on: commit: 56e337f2 Revert "gpio: Revert regression in sysfs-gpio.. git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=d35f9bc6884af6c9 dashboard link: https://syzkaller.appspot.com/bug?extid=fcc629d1a1ae8d3fe8a5 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 patch: https://syzkaller.appspot.com/x/patch.diff?x=1131f2c5700000 Note: testing is done by a robot and is best-effort only.