static int find_vdso_map(void **start, void **end) { FILE *maps; char line[128]; int found = 0; maps = fopen("/proc/self/maps", "r"); if (!maps) { fprintf(stderr, "vdso: cannot open maps\n"); return -1; } while (!found && fgets(line, sizeof(line), maps)) { int m = -1; /* We care only about private r-x mappings. */ if (2 != sscanf(line, "%p-%p r-xp %*x %*x:%*x %*u %n", start, end, &m)) continue; if (m < 0) continue; if (!strncmp(&line[m], VDSO__MAP_NAME, sizeof(VDSO__MAP_NAME) - 1)) found = 1; } fclose(maps); return !found; } t' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/sound/drivers/pcm-indirect2.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-03 22:19:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-03 22:19:15 +0100
commit424414947da3dd5cb0d60e4f299f7c51e472ae77 (patch)
treea4067480c4256c80ae8f8438a3e4bb88e32050bc /sound/drivers/pcm-indirect2.c
parenta3683e0c1410c5c8136a7a93b0336ce88d3b893a (diff)
parentd07830db1bdb254e4b50d366010b219286b8c937 (diff)
Merge tag 'usb-serial-4.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-linus
Johan writes: USB-serial fixes for v4.10-rc7 One more device ID for pl2303. Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'sound/drivers/pcm-indirect2.c')