mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
[AX.25]: Make asc2ax() thread-proof
Asc2ax was still using a static buffer for all invocations which isn't exactly SMP-safe. Change asc2ax to take an additional result buffer as the argument. Change all callers to provide such a buffer. This one only really is a fix for ROSE and as per recent discussions there's still much more to fix in ROSE ... Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3a93481589
commit
baed16a7ff
3 changed files with 15 additions and 18 deletions
|
@ -258,7 +258,7 @@ extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *);
|
|||
/* ax25_addr.c */
|
||||
extern ax25_address null_ax25_address;
|
||||
extern char *ax2asc(char *buf, ax25_address *);
|
||||
extern ax25_address *asc2ax(char *);
|
||||
extern void asc2ax(ax25_address *addr, char *callsign);
|
||||
extern int ax25cmp(ax25_address *, ax25_address *);
|
||||
extern int ax25digicmp(ax25_digi *, ax25_digi *);
|
||||
extern unsigned char *ax25_addr_parse(unsigned char *, int, ax25_address *, ax25_address *, ax25_digi *, int *, int *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue