@@ -1516,8 +1516,10 @@ xrep_xattr_teardown(
15161516 xfblob_destroy (rx -> pptr_names );
15171517 if (rx -> pptr_recs )
15181518 xfarray_destroy (rx -> pptr_recs );
1519- xfblob_destroy (rx -> xattr_blobs );
1520- xfarray_destroy (rx -> xattr_records );
1519+ if (rx -> xattr_blobs )
1520+ xfblob_destroy (rx -> xattr_blobs );
1521+ if (rx -> xattr_records )
1522+ xfarray_destroy (rx -> xattr_records );
15211523 mutex_destroy (& rx -> lock );
15221524 kfree (rx );
15231525}
@@ -1529,7 +1531,6 @@ xrep_xattr_setup_scan(
15291531 struct xrep_xattr * * rxp )
15301532{
15311533 struct xrep_xattr * rx ;
1532- char * descr ;
15331534 int max_len ;
15341535 int error ;
15351536
@@ -1555,35 +1556,26 @@ xrep_xattr_setup_scan(
15551556 goto out_rx ;
15561557
15571558 /* Set up some staging for salvaged attribute keys and values */
1558- descr = xchk_xfile_ino_descr (sc , "xattr keys" );
1559- error = xfarray_create (descr , 0 , sizeof (struct xrep_xattr_key ),
1559+ error = xfarray_create ("xattr keys" , 0 , sizeof (struct xrep_xattr_key ),
15601560 & rx -> xattr_records );
1561- kfree (descr );
15621561 if (error )
15631562 goto out_rx ;
15641563
1565- descr = xchk_xfile_ino_descr (sc , "xattr names" );
1566- error = xfblob_create (descr , & rx -> xattr_blobs );
1567- kfree (descr );
1564+ error = xfblob_create ("xattr names" , & rx -> xattr_blobs );
15681565 if (error )
15691566 goto out_keys ;
15701567
15711568 if (xfs_has_parent (sc -> mp )) {
15721569 ASSERT (sc -> flags & XCHK_FSGATES_DIRENTS );
15731570
1574- descr = xchk_xfile_ino_descr (sc ,
1575- "xattr retained parent pointer entries" );
1576- error = xfarray_create (descr , 0 ,
1571+ error = xfarray_create ("xattr parent pointer entries" , 0 ,
15771572 sizeof (struct xrep_xattr_pptr ),
15781573 & rx -> pptr_recs );
1579- kfree (descr );
15801574 if (error )
15811575 goto out_values ;
15821576
1583- descr = xchk_xfile_ino_descr (sc ,
1584- "xattr retained parent pointer names" );
1585- error = xfblob_create (descr , & rx -> pptr_names );
1586- kfree (descr );
1577+ error = xfblob_create ("xattr parent pointer names" ,
1578+ & rx -> pptr_names );
15871579 if (error )
15881580 goto out_pprecs ;
15891581
0 commit comments