Hello,syzbot has tested the proposed patch and the reproducer did not trigger crash:
Reported-and-tested-by: [email protected]
Tested on: commit: b1da6a51 fsnotify: Fix NULL ptr deref in fanotify_get_fsid()git tree: git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git fsnotify
kernel config: https://syzkaller.appspot.com/x/.config?x=a42d110b47dd6b36 compiler: gcc (GCC) 9.0.0 20181231 (experimental) Note: testing is done by a robot and is best-effort only.

