mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
fix warning in fs/dlm/netlink.c
this warning: fs/dlm/netlink.c: In function ‘dlm_timeout_warn’: fs/dlm/netlink.c:131: warning: ‘send_skb’ may be used uninitialized in this function triggers because GCC does not recognize the (correct) error flow between prepare_data() and send_skb. Annotate it. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d3f644da90
commit
180b65df7b
@ -127,8 +127,8 @@ static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb)
|
||||
|
||||
void dlm_timeout_warn(struct dlm_lkb *lkb)
|
||||
{
|
||||
struct sk_buff *uninitialized_var(send_skb);
|
||||
struct dlm_lock_data *data;
|
||||
struct sk_buff *send_skb;
|
||||
size_t size;
|
||||
int rv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user