diff options
| author | Aurelien Aptel <[email protected]> | 2019-12-04 15:14:54 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2019-12-04 17:51:18 +0000 |
| commit | 9a7d5a9e6d7921e1854b4606ce8c3e17d565f463 (patch) | |
| tree | e3bd912be7c3025e3586954802d59f222504579f /net/unix/af_unix.c | |
| parent | cifs: Fix lookup of SMB connections on multichannel (diff) | |
| download | kernel-9a7d5a9e6d7921e1854b4606ce8c3e17d565f463.tar.gz kernel-9a7d5a9e6d7921e1854b4606ce8c3e17d565f463.zip | |
cifs: fix possible uninitialized access and race on iface_list
iface[0] was accessed regardless of the count value and without
locking.
* check count before accessing any ifaces
* make copy of iface list (it's a simple POD array) and use it without
locking.
Signed-off-by: Aurelien Aptel <[email protected]>
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
