netns: read NETNSA_NSID as s32 attribute in rtnl_net_getid()
authorGuillaume Nault <[email protected]>
Thu, 11 Apr 2019 14:45:57 +0000 (16:45 +0200)
committerDavid S. Miller <[email protected]>
Thu, 11 Apr 2019 18:26:27 +0000 (11:26 -0700)
commitecce39ec10937fb0d9f34ab43c75482d6c243292
tree5dbfa48f6210e95739bb04e6ac663afa12bd6e6d
parent526bb57a6ad6b0ed6de34b3c5eabf394b248618f
netns: read NETNSA_NSID as s32 attribute in rtnl_net_getid()

NETNSA_NSID is signed. Use nla_get_s32() to avoid confusion.

Signed-off-by: Guillaume Nault <[email protected]>
Acked-by: Nicolas Dichtel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/net_namespace.c