Print this page
5042 stop using deprecated atomic functions

@@ -76,11 +76,11 @@
         /*
          * Locate and reserve a clone structure.  We skip clone 0 as that is
          * the real minor number, and we assign a new minor to each clone.
          */
         for (c = 1; c < smb_nclones; c++) {
-                if (casptr(&smb_clones[c].c_hdl, NULL, ksmbios) == NULL)
+                if (atomic_cas_ptr(&smb_clones[c].c_hdl, NULL, ksmbios) == NULL)
                         break;
         }
 
         if (c >= smb_nclones)
                 return (EAGAIN);