Merge tag 'pci-v5.18-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / samples / livepatch / livepatch-shadow-fix2.c
index 29fe5cd420472ad2e9e81188132d0ce47b6a55b8..361046a4f10cf4a99f0c9923294de55962c7d508 100644 (file)
@@ -61,9 +61,9 @@ static void livepatch_fix2_dummy_leak_dtor(void *obj, void *shadow_data)
        void *d = obj;
        int **shadow_leak = shadow_data;
 
-       kfree(*shadow_leak);
        pr_info("%s: dummy @ %p, prevented leak @ %p\n",
                         __func__, d, *shadow_leak);
+       kfree(*shadow_leak);
 }
 
 static void livepatch_fix2_dummy_free(struct dummy *d)