5045 use atomic_{inc,dec}_* instead of atomic_add_*
@@ -37,20 +37,20 @@ * increment audit path reference count */ void au_pathhold(struct audit_path *app) { - atomic_add_32(&app->audp_ref, 1); + atomic_inc_32(&app->audp_ref); } /* * decrement audit path reference count */ void au_pathrele(struct audit_path *app) { - if (atomic_add_32_nv(&app->audp_ref, -1) > 0) + if (atomic_dec_32_nv(&app->audp_ref) > 0) return; kmem_free(app, app->audp_size); } /*