From: Julia Lawall Subject: question about fs/ceph/snap.c Date: Sat, 21 Nov 2009 21:34:43 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ceph-devel-bounces@lists.sourceforge.net To: sage@newdream.net, ceph-devel@lists.sourceforge.net List-Id: ceph-devel.vger.kernel.org The file fs/ceph/snap.c contains four calls to ceph_lookup_snap_realm, all of which test the returned value first with IS_ERR and then by checking for a NULL pointer. But the definition of ceph_lookup_snap_realm contains a dereference of its argument if it is not NULL, which suggests that an ERR_PTR value is not what expected. So something seems to be inconsistent here. julia ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july