Whamcloud - gitweb
LU-6142 lustre: convert some container_of to *_safe
[fs/lustre-release.git] / lustre / mdt / mdt_mds.c
index 860cdf9..1c06518 100644 (file)
@@ -567,7 +567,7 @@ err_mds_svc:
 
 static inline struct mds_device *mds_dev(struct lu_device *d)
 {
-       return container_of0(d, struct mds_device, mds_md_dev.md_lu_dev);
+       return container_of_safe(d, struct mds_device, mds_md_dev.md_lu_dev);
 }
 
 static struct lu_device *mds_device_fini(const struct lu_env *env,