Whamcloud - gitweb
LU-1448 llite: Prevent NULL pointer dereference on disabled OSC
[fs/lustre-release.git] / lustre / obdclass / lustre_peer.c
index 014e714..261674c 100644 (file)
@@ -1,6 +1,4 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
  * GPL HEADER START
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -128,7 +126,7 @@ int class_add_uuid(const char *uuid, __u64 nid)
 
                         if (i == entry->un_nid_count) {
                                 LASSERT(entry->un_nid_count < NIDS_MAX);
-                                entry->un_nids[++entry->un_nid_count] = nid;
+                                entry->un_nids[entry->un_nid_count++] = nid;
                         }
                         break;
                 }