To restore order , a detachment led by Sun Quan 's general Gan Ning established a bridgehead in Yiling to the north , and only a staunch rearguard action by Cao Ren prevented further catastrophe (; ) .