Return-Path: Date: Tue, 21 Oct 2014 16:12:26 +0200 From: Jan Kara To: Lars Ellenberg Message-ID: <20141021141226.GA9223@quack.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: drbd-user@lists.linbit.com Subject: [Drbd-dev] Bug in drbd_adm_attach() List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 SUSE Labs, CR