1772 /* correct session? */ 1773 if (!req->r_session && req->r_session != session) {
Is this supposed to || here? We know "session" is non-NULL at the point because we already dereferenced it. If "req->r_session" is null then the second condition is always true. Also we dereference "req->r_session" later on without checking. 1774 pr_err("mdsc_handle_reply got %llu on session mds%d" 1775 " not mds%d\n", tid, session->s_mds, 1776 req->r_session ? req->r_session->s_mds : -1); 1777 mutex_unlock(&mdsc->mutex); 1778 goto out; 1779 } 1780 regards, dan carpenter ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ceph-devel mailing list Ceph-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ceph-devel