By using the image space analysis,a gap function for the Ky Fan quasi-inequality is constructed by the linear regular weak separation function. Then a new error bound result is obtained. Besides,sufficient conditions for the semicontinuity of gap functions are presented.