Tag: 0c5824083b8ca4aff083dc74024d0bfd46f9da9d

usb: phy: drop kfree of devm_kzalloc’s data

Author: Himangi Saraogi <himangi774@gmail.com> Using kfree to free data allocated with devm_kzalloc causes double frees. The Coccinelle semantic patch that fixes this problem is as follows: // @@ expression x; @@ x = devm_kzalloc(…) … ?-kfree(x); // Reviewed-by: Jingoo Han Acked-by: Julia Lawall Signed-off-by: Himangi Saraogi Signed-off-by: Felipe Balbi — drivers/usb/phy/phy-gpio-vbus-usb.c | 4 +— 1 …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.