[DRBD-user] Bug in drbd_adm_attach()

Jan Kara jack at suse.cz
Tue Oct 21 16:12:26 CEST 2014

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


  Hello,

  Coverity has spotted a problem in drbd_adm_attach() which does:

        connection = peer_device ? peer_device->connection : NULL;
        conn_reconfig_start(connection);

and conn_reconfig_start() just blindly dereferences 'connection'. So either
peer_device cannot be NULL (and then the test is superfluous) or there's a
bug...

								Honza
-- 
Jan Kara <jack at suse.cz>
SUSE Labs, CR



More information about the drbd-user mailing list