aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/fdso.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/fdso.c')
-rw-r--r--litmus/fdso.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/fdso.c b/litmus/fdso.c
index 709be3cc8992..3749d6beb107 100644
--- a/litmus/fdso.c
+++ b/litmus/fdso.c
@@ -46,6 +46,8 @@ static const struct fdso_ops* fdso_ops[] = {
46 46
47static int fdso_create(void** obj_ref, obj_type_t type, void* __user config) 47static int fdso_create(void** obj_ref, obj_type_t type, void* __user config)
48{ 48{
49 BUILD_BUG_ON(ARRAY_SIZE(fdso_ops) != MAX_OBJ_TYPE + 1);
50
49 if (fdso_ops[type]->create) 51 if (fdso_ops[type]->create)
50 return fdso_ops[type]->create(obj_ref, type, config); 52 return fdso_ops[type]->create(obj_ref, type, config);
51 else 53 else