]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/cifs_spnego.c
Merge current mainline tree into linux-omap tree
[linux-2.6-omap-h63xx.git] / fs / cifs / cifs_spnego.c
index 1529d2b12e9ce04c02e3821b9d9eb1797974159a..6653e29637a7ec534c83d53c8a21ddda24130367 100644 (file)
@@ -122,11 +122,13 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
        cFYI(1, ("key description = %s", description));
        spnego_key = request_key(&cifs_spnego_key_type, description, "");
 
+#ifdef CONFIG_CIFS_DEBUG2
        if (cifsFYI && !IS_ERR(spnego_key)) {
                struct cifs_spnego_msg *msg = spnego_key->payload.data;
-               cifs_dump_mem("SPNEGO reply blob:", msg->data,
-                               msg->secblob_len + msg->sesskey_len);
+               cifs_dump_mem("SPNEGO reply blob:", msg->data, min(1024U,
+                               msg->secblob_len + msg->sesskey_len));
        }
+#endif /* CONFIG_CIFS_DEBUG2 */
 
 out:
        kfree(description);