Commit 19b39a25 authored by Li RongQing's avatar Li RongQing Committed by Stefan Schmidt
Browse files

ieee802154: hwsim: propagate genlmsg_reply return code



genlmsg_reply can fail, so propagate its return code

Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent 2795e8c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -324,7 +324,7 @@ static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info)
			goto out_err;
		}

		genlmsg_reply(skb, info);
		res = genlmsg_reply(skb, info);
		break;
	}