summaryrefslogtreecommitdiff
path: root/drivers/md/dm-ps-service-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-ps-service-time.c')
-rw-r--r--drivers/md/dm-ps-service-time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-ps-service-time.c b/drivers/md/dm-ps-service-time.c
index 969d31c40272..f8c43aecdb27 100644
--- a/drivers/md/dm-ps-service-time.c
+++ b/drivers/md/dm-ps-service-time.c
@@ -341,8 +341,10 @@ static int __init dm_st_init(void)
{
int r = dm_register_path_selector(&st_ps);
- if (r < 0)
+ if (r < 0) {
DMERR("register failed %d", r);
+ return r;
+ }
DMINFO("version " ST_VERSION " loaded");