[PATCH v2] net: Fix uninit character pointer and return values