Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull memcg-v1 fix from Al Viro:
"memcg_write_event_control() oops fix"

* tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
memcg_write_event_control(): fix a user-triggerable oops

+5 -2
+5 -2
mm/memcontrol-v1.c
··· 1842 1842 buf = endp + 1; 1843 1843 1844 1844 cfd = simple_strtoul(buf, &endp, 10); 1845 - if ((*endp != ' ') && (*endp != '\0')) 1845 + if (*endp == '\0') 1846 + buf = endp; 1847 + else if (*endp == ' ') 1848 + buf = endp + 1; 1849 + else 1846 1850 return -EINVAL; 1847 - buf = endp + 1; 1848 1851 1849 1852 event = kzalloc(sizeof(*event), GFP_KERNEL); 1850 1853 if (!event)