OSDN Git Service

net: ieee802154: Return meaningful error codes from the netlink helpers
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 12:14:25 +0000 (13:14 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 27 Jan 2022 07:20:47 +0000 (08:20 +0100)
commit79c37ca73a6e9a33f7b2b7783ba6af07a448c8a9
tree36ff4aa896f5f93138409aeab1530c2f102ce20a
parent621b24b09eb61c63f262da0c9c5f0e93348897e5
net: ieee802154: Return meaningful error codes from the netlink helpers

Returning -1 does not indicate anything useful.

Use a standard and meaningful error code instead.

Fixes: a26c5fd7622d ("nl802154: add support for security layer")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220125121426.848337-6-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/nl802154.c