From: Benny Halevy <bhalevy@xxxxxxxxxx> Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxx> --- ctl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ctl.c b/ctl.c index 959ef6a..7432a09 100644 --- a/ctl.c +++ b/ctl.c @@ -494,7 +494,7 @@ find_dm_name(int major, int minor) if (((fd = get_output("/sbin/dmsetup", argv)) == -1) || ((fp = fdopen(fd, "r")) == NULL)) { printf("%s: get_output/fdopen failed\n", __func__); - return; + return NULL; } while (fgets(buf, sizeof (buf), fp) != NULL) { t = __token_init(buf, '\t'); @@ -545,6 +545,7 @@ error: fclose(fp); (void) wait(&status); + return NULL; } static int -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html