From: Andreas Gruenbacher Date: Wed, 19 Feb 2014 09:49:07 +0000 (+0100) Subject: drbd: Fix future possible NULL pointer dereference X-Git-Tag: v3.15-rc1~134^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f597f6b8dfaa033be3b3b755e6c0ab3caee96dcd;p=pandora-kernel.git drbd: Fix future possible NULL pointer dereference Right now every resource has exactly one connection. But we are preparing for dynamic connections. I.e. in the future thre can be resources without connections. However smatch points this out as 'variable dereferenced before check', which is correct. This issue was introduced in drbd: get_one_status(): Iterate over resource->devices instead of connection->peer_devices Reported-by: Dan Carpenter Signed-off-by: Andreas Gruenbacher Signed-off-by: Philipp Reisner Signed-off-by: Jens Axboe --- Reading git-diff-tree failed