Skip to contentSkip to conversation

ceph: factor out libceph from Ceph file system

DISCUSSION Dan Carpenter 1 participant 2 messages Sep 28, 2012

lore
Share & tools
lore
#0 lore raw

Hello Yehuda Sadeh,

This is a semi-automatic email about new static checker warnings.

The patch 3d14c5d2b6e1: "ceph: factor out libceph from Ceph file system" from Apr 6, 2010, leads to the following Smatch complaint:

fs/ceph/super.c:279 strcmp_null()
error: we previously assumed 's1' could be null (see line 277)

fs/ceph/super.c
276 return -1;
277 if (!s1 && s2)

                    ^^^^^^^^^

Check.

278 return 1;

   279		return strcmp(s1, s2);
                       ^^^^^^^^^^^^^^

Dereference inside function call.

280 }
281

regards,
dan carpenter

See also:

#1 lore raw

Oh crap. I didn't read this at all. Obviously a false positive.

Sorry about that.

regards,
dan carpenter