Merge tag 'v3.10.108' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / fscache / object-list.c
index f27c89d178855bbe2adfd0aba12a816eae7ab409..e7cf8c5f2677141646a01884af5dc8a3d237bbbe 100644 (file)
@@ -338,6 +338,13 @@ static void fscache_objlist_config(struct fscache_objlist_data *data)
        rcu_read_lock();
 
        confkey = key->payload.data;
+       if (!confkey) {
+               /* key was revoked */
+               rcu_read_unlock();
+               key_put(key);
+               goto no_config;
+       }
+
        buf = confkey->data;
 
        for (len = confkey->datalen - 1; len >= 0; len--) {