|
@@ -12339,7 +12339,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
|
|
case TARGET_NR_listxattr:
|
|
case TARGET_NR_listxattr:
|
|
case TARGET_NR_llistxattr:
|
|
case TARGET_NR_llistxattr:
|
|
{
|
|
{
|
|
- void *p, *b = 0;
|
|
|
|
|
|
+ void *b = 0;
|
|
if (arg2) {
|
|
if (arg2) {
|
|
b = lock_user(VERIFY_WRITE, arg2, arg3, 0);
|
|
b = lock_user(VERIFY_WRITE, arg2, arg3, 0);
|
|
if (!b) {
|
|
if (!b) {
|
|
@@ -12376,7 +12376,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
|
|
case TARGET_NR_setxattr:
|
|
case TARGET_NR_setxattr:
|
|
case TARGET_NR_lsetxattr:
|
|
case TARGET_NR_lsetxattr:
|
|
{
|
|
{
|
|
- void *p, *n, *v = 0;
|
|
|
|
|
|
+ void *n, *v = 0;
|
|
if (arg3) {
|
|
if (arg3) {
|
|
v = lock_user(VERIFY_READ, arg3, arg4, 1);
|
|
v = lock_user(VERIFY_READ, arg3, arg4, 1);
|
|
if (!v) {
|
|
if (!v) {
|
|
@@ -12421,7 +12421,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
|
|
case TARGET_NR_getxattr:
|
|
case TARGET_NR_getxattr:
|
|
case TARGET_NR_lgetxattr:
|
|
case TARGET_NR_lgetxattr:
|
|
{
|
|
{
|
|
- void *p, *n, *v = 0;
|
|
|
|
|
|
+ void *n, *v = 0;
|
|
if (arg3) {
|
|
if (arg3) {
|
|
v = lock_user(VERIFY_WRITE, arg3, arg4, 0);
|
|
v = lock_user(VERIFY_WRITE, arg3, arg4, 0);
|
|
if (!v) {
|
|
if (!v) {
|
|
@@ -12466,7 +12466,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
|
|
case TARGET_NR_removexattr:
|
|
case TARGET_NR_removexattr:
|
|
case TARGET_NR_lremovexattr:
|
|
case TARGET_NR_lremovexattr:
|
|
{
|
|
{
|
|
- void *p, *n;
|
|
|
|
|
|
+ void *n;
|
|
p = lock_user_string(arg1);
|
|
p = lock_user_string(arg1);
|
|
n = lock_user_string(arg2);
|
|
n = lock_user_string(arg2);
|
|
if (p && n) {
|
|
if (p && n) {
|