]> git.baikalelectronics.ru Git - kernel.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)
commit397c960e7c770d37e1b28218d1f8175373eee46c
tree4388f22e3f80dbf4b702e90c7e71467fedcd5ea3
parente6360ae6295b54a2dab30ca969a9c99c10d27976
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