mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
This cleanup patchset includes the following patches:
- bump version strings, by Simon Wunderlich - Improve error handling in DAT and uevent generator, by Markus Elfring (2 patches) - Drop usage of export.h, by Sven Eckelmann -----BEGIN PGP SIGNATURE----- iQJKBAABCgA0FiEE1ilQI7G+y+fdhnrfoSvjmEKSnqEFAmW7eyoWHHN3QHNpbW9u d3VuZGVybGljaC5kZQAKCRChK+OYQpKeoUxzD/9xhPlaNHquoeB45kj2EY6UwERi bTdX+gcN0n++M9OEW1FIjnDjHbYLb+bPUu2frADnkiOg6ckgCTboE7j0pceydKQ2 z/4F26ohmaoesLD+YCl1x33791KQicgFZccxlC+CWi4mpVvNykfFUOVETY3/wq+G yUXrZ7tGOTat5qO17wZY7+uIvZgp55WNA8YsvWgPy7vjPixkftD9LiwAs92+Shjl 1+jRvWmcfHhBDInYIdo2TB2cJUJ4B0sYVaRhQAkFkhnR9Wm2p9w+V7U/Xk3z8K4K ox6iIeXjpd5Hcb8LRcogvoRuOouMmqNvfY7wS7/qC/QXQEMph9GKDsqpbZ+WpHA3 wRUao9JoQ+nH4Oe8K4nhRA7I8MuXscVMoTNIhETjiuk+sgF7UFgUQIHy17WK4EPc MM+NmDLvCu3TBU4Br1lwVGhdeDIfMqvcSlBUc2QqT/iySd7CmUGF3U1ypjEaLq6o dGnJOa8lfEGhy57Z1ir+CcOndUl0xBNAu+wC9zko3DW9wbCMKQdOwcS2VGvIGcdP UQrdi9KJEYHt8my5cZwtjUCtqbbe1AKVJrJ6e+f1MrhM64ynDuFsGtIM4urraaXI Vigbs9rTnVWwhnA3VLSxeAK+k+qVkjLrcEY0EJwk1DU+fvYyaFdQZY/RMn/EQGFl o0/OfhX3sTCsE0P1zg== =Uo1w -----END PGP SIGNATURE----- Merge tag 'batadv-next-pullrequest-20240201' of git://git.open-mesh.org/linux-merge Simon Wunderlich says: ==================== This cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - Improve error handling in DAT and uevent generator, by Markus Elfring (2 patches) - Drop usage of export.h, by Sven Eckelmann ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
d81c0792e6
@ -684,7 +684,7 @@ static bool batadv_dat_forward_data(struct batadv_priv *bat_priv,
|
||||
|
||||
cand = batadv_dat_select_candidates(bat_priv, ip, vid);
|
||||
if (!cand)
|
||||
goto out;
|
||||
return ret;
|
||||
|
||||
batadv_dbg(BATADV_DBG_DAT, bat_priv, "DHT_SEND for %pI4\n", &ip);
|
||||
|
||||
@ -728,7 +728,6 @@ free_orig:
|
||||
batadv_orig_node_put(cand[i].orig_node);
|
||||
}
|
||||
|
||||
out:
|
||||
kfree(cand);
|
||||
return ret;
|
||||
}
|
||||
|
@ -691,29 +691,31 @@ int batadv_throw_uevent(struct batadv_priv *bat_priv, enum batadv_uev_type type,
|
||||
"%s%s", BATADV_UEV_TYPE_VAR,
|
||||
batadv_uev_type_str[type]);
|
||||
if (!uevent_env[0])
|
||||
goto out;
|
||||
goto report_error;
|
||||
|
||||
uevent_env[1] = kasprintf(GFP_ATOMIC,
|
||||
"%s%s", BATADV_UEV_ACTION_VAR,
|
||||
batadv_uev_action_str[action]);
|
||||
if (!uevent_env[1])
|
||||
goto out;
|
||||
goto free_first_env;
|
||||
|
||||
/* If the event is DEL, ignore the data field */
|
||||
if (action != BATADV_UEV_DEL) {
|
||||
uevent_env[2] = kasprintf(GFP_ATOMIC,
|
||||
"%s%s", BATADV_UEV_DATA_VAR, data);
|
||||
if (!uevent_env[2])
|
||||
goto out;
|
||||
goto free_second_env;
|
||||
}
|
||||
|
||||
ret = kobject_uevent_env(bat_kobj, KOBJ_CHANGE, uevent_env);
|
||||
out:
|
||||
kfree(uevent_env[0]);
|
||||
kfree(uevent_env[1]);
|
||||
kfree(uevent_env[2]);
|
||||
free_second_env:
|
||||
kfree(uevent_env[1]);
|
||||
free_first_env:
|
||||
kfree(uevent_env[0]);
|
||||
|
||||
if (ret)
|
||||
report_error:
|
||||
batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
|
||||
"Impossible to send uevent for (%s,%s,%s) event (err: %d)\n",
|
||||
batadv_uev_type_str[type],
|
||||
|
@ -13,7 +13,7 @@
|
||||
#define BATADV_DRIVER_DEVICE "batman-adv"
|
||||
|
||||
#ifndef BATADV_SOURCE_VERSION
|
||||
#define BATADV_SOURCE_VERSION "2024.0"
|
||||
#define BATADV_SOURCE_VERSION "2024.1"
|
||||
#endif
|
||||
|
||||
/* B.A.T.M.A.N. parameters */
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include <linux/cache.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/gfp.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
Loading…
Reference in New Issue
Block a user