If the two are mixed up, then it looks as though the parent returned an error if the child failed (before) the mmap(), and then the resulting process never gets killed. Fix this by splitting the child and parent errors, reporting and using them appropriately. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
17 lines
288 B
C
17 lines
288 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
|
|
* Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de)
|
|
* Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
|
|
*/
|
|
|
|
#ifndef __STUB_DATA_H
|
|
#define __STUB_DATA_H
|
|
|
|
struct stub_data {
|
|
unsigned long offset;
|
|
int fd;
|
|
long parent_err, child_err;
|
|
};
|
|
|
|
#endif
|