Tag: 9abebb8a10ce93db45327bd3a4d06801e6db92f2

NFC: delete null dereference

Author: Julia Lawall <Julia.Lawall@lip6.fr> The exit label performs device_unlock(&dev->dev);, which will fail when dev is NULL, and nfc_put_device(dev);, which is not useful when dev is NULL, so just exit the function immediately. Problem found using scripts/coccinelle/null/deref_null.cocci Signed-off-by: Julia Lawall Signed-off-by: Samuel Ortiz — net/nfc/netlink.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-)   …

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.