Print this page

        

@@ -888,10 +888,12 @@
                                 miocack(qp, mp, 0, EINVAL);
                                 return;
                         }
 
                         /* Get the primary slave minor device number */
+                        ASSERT(IS_P2ALIGNED(mp->b_cont->b_rptr, 4));
+                        /* LINTED - b_rptr will always be aligned. */
                         to = *(int *)mp->b_cont->b_rptr;
                         instance = ZFD_INSTANCE(to);
 
                         if ((prim_zfds = ddi_get_soft_state(zfd_soft_state,
                             instance)) == NULL) {

@@ -940,10 +942,12 @@
                                 return;
                         }
                         prim_zfds = zfds->zfd_inst_pri;
 
                         /* Get the flow control setting */
+                        ASSERT(IS_P2ALIGNED(mp->b_cont->b_rptr, 4));
+                        /* LINTED - b_rptr will always be aligned. */
                         val = *(int *)mp->b_cont->b_rptr;
                         if (val != 0 && val != 1) {
                                 miocack(qp, mp, 0, EINVAL);
                                 return;
                         }