[Drbd-dev] [PATCH] drbd: Fix future possible NULL pointer dereference

Jens Axboe axboe at kernel.dk
Sat Feb 22 00:42:53 CET 2014


On Wed, Feb 19 2014, Philipp Reisner wrote:
> From: Andreas Gruenbacher <agruen at linbit.com>
> 
> 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

Applied, thanks.

-- 
Jens Axboe



More information about the drbd-dev mailing list