[PATCH 3.16 083/245] staging: gigaset: add endpoint-type sanity check