diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index 90baad0af24d151dc94b272e0c95380ad2f6d462..9e8fa1834a154912944d8a6d6684b0c6f679f440 100644 --- a/drivers/phy/tegra/xusb.c +++ b/drivers/phy/tegra/xusb.c @@ -385,7 +385,7 @@ struct tegra_xusb_lane *tegra_xusb_find_lane(struct tegra_xusb_padctl *padctl, name = kasprintf(GFP_KERNEL, "%s-%u", type, index); if (!name) - return NULL; + return ERR_PTR(-ENOMEM); list_for_each_entry(lane, &padctl->lanes, list) { if (strcmp(lane->soc->name, name) == 0) {