Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6142 lustre: convert some container_of to *_safe
[fs/lustre-release.git]
/
lustre
/
osp
/
lwp_dev.c
diff --git
a/lustre/osp/lwp_dev.c
b/lustre/osp/lwp_dev.c
index
6fdf950
..
d8c83aa
100644
(file)
--- a/
lustre/osp/lwp_dev.c
+++ b/
lustre/osp/lwp_dev.c
@@
-56,7
+56,7
@@
struct lwp_device {
static inline struct lwp_device *lu2lwp_dev(struct lu_device *d)
{
- return container_of
0
(d, struct lwp_device, lpd_dev);
+ return container_of
_safe
(d, struct lwp_device, lpd_dev);
}
static inline struct lu_device *lwp2lu_dev(struct lwp_device *d)