[Drbd-dev] Bug in drbd_adm_attach()
Jan Kara
jack at suse.cz
Tue Oct 21 16:12:26 CEST 2014
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-dev
mailing list