krealloc potential issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't want to assing result to old variable.

drivers/pinctrl/berlin/berlin.c:239:    pctrl->functions =
krealloc(pctrl->functions,
drivers/pinctrl/sh-pfc/pinctrl.c:192:   maps = krealloc(maps,
sizeof(*maps) * nmaps, GFP_KERNEL);
drivers/pinctrl/sunxi/pinctrl-sunxi.c:400:      *map = krealloc(*map,
i * sizeof(struct pinctrl_map), GFP_KERNEL);
drivers/pinctrl/sunxi/pinctrl-sunxi.c:1088:     pctl->functions =
krealloc(pctl->functions,


I have checked them, and seems all listed have a flaw.

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux