Merge branch 'tip-x86-mm' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp...
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / apei / erst.c
index cb1d557fc22c054fa36beb1f74bfae42ea49f2c2..ed65e9c4b5b0415c1dcc77690a4add725a49a0bd 100644 (file)
@@ -611,7 +611,7 @@ static void __erst_record_id_cache_compact(void)
                if (entries[i] == APEI_ERST_INVALID_RECORD_ID)
                        continue;
                if (wpos != i)
-                       memcpy(&entries[wpos], &entries[i], sizeof(entries[i]));
+                       entries[wpos] = entries[i];
                wpos++;
        }
        erst_record_id_cache.len = wpos;