dahdi: Return dahdi_span_ops.startup callback errors to userspace.

Allows dahdi_cfg to return an error code if a board driver fails it's startup
call for any reason.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10379 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Shaun Ruffell 2011-12-14 19:02:48 +00:00
parent b43c7f02a0
commit 2983075256

View File

@ -4877,7 +4877,7 @@ static int dahdi_ioctl_startup(struct file *file, unsigned long data)
__dahdi_find_master_span();
}
put_span(s);
return 0;
return res;
}
static int dahdi_ioctl_shutdown(unsigned long data)