Re: [PATCH] drbd: Fix future possible NULL pointer dereference

2014-02-21 Thread Jens Axboe
On Wed, Feb 19 2014, Philipp Reisner wrote: > From: Andreas Gruenbacher > > 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

Re: [PATCH] drbd: Fix future possible NULL pointer dereference

2014-02-21 Thread Jens Axboe
On Wed, Feb 19 2014, Philipp Reisner wrote: From: Andreas Gruenbacher agr...@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

[PATCH] drbd: Fix future possible NULL pointer dereference

2014-02-19 Thread Philipp Reisner
From: Andreas Gruenbacher 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

[PATCH] drbd: Fix future possible NULL pointer dereference

2014-02-19 Thread Philipp Reisner
From: Andreas Gruenbacher agr...@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.