[PATCH 4.9 44/56] fs/proc/proc_sysctl.c: fix NULL pointer dereference in put_links