]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
quota: Fix possible GPF due to uninitialised pointers
authorNikolay Borisov <kernel@kyup.com>
Thu, 3 Mar 2016 09:54:57 +0000 (10:54 +0100)
committerJan Kara <jack@suse.cz>
Thu, 3 Mar 2016 10:01:58 +0000 (11:01 +0100)
commitab73ef46398e2c0159f3a71de834586422d2a44a
tree4388f22e3f80dbf4b702e90c7e71467fedcd5ea3
parent6332b9b5e79769b3e9d79d664896b872d7ba6a66
quota: Fix possible GPF due to uninitialised pointers

When dqget() in __dquot_initialize() fails e.g. due to IO error,
__dquot_initialize() will pass an array of uninitialized pointers to
dqput_all() and thus can lead to deference of random data. Fix the
problem by properly initializing the array.

CC: stable@vger.kernel.org
Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c