[PATCH 3.18 134/144] net: socket: fix a missing-check bug