If you have a multiple span system configured for t1 mode, and you try to change only the first span from t1 to e1 via sysfs, you could get an error in the kernel log about trying to create duplicate channel. The problem is that the check for whether there was enough room for the all the channels of the switched span was wrong. Reported-by: James Brown <jbrown@digium.com> Signed-off-by: Shaun Ruffell <sruffell@digium.com> Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>