socket.c (36d99df2fb474222ab47fbe8ae7385661033223b) | socket.c (653252c2302cdf2dfbca66a7e177f7db783f9efa) |
---|---|
1/* 2 * net/tipc/socket.c: TIPC socket API 3 * 4 * Copyright (c) 2001-2007, Ericsson AB 5 * Copyright (c) 2004-2007, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1742 unchanged lines hidden (view full) --- 1751 release_sock(sk); 1752 1753 if (res) { 1754 /* "get" failed */ 1755 } 1756 else if (len < sizeof(value)) { 1757 res = -EINVAL; 1758 } | 1/* 2 * net/tipc/socket.c: TIPC socket API 3 * 4 * Copyright (c) 2001-2007, Ericsson AB 5 * Copyright (c) 2004-2007, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1742 unchanged lines hidden (view full) --- 1751 release_sock(sk); 1752 1753 if (res) { 1754 /* "get" failed */ 1755 } 1756 else if (len < sizeof(value)) { 1757 res = -EINVAL; 1758 } |
1759 else if ((res = copy_to_user(ov, &value, sizeof(value)))) { 1760 /* couldn't return value */ | 1759 else if (copy_to_user(ov, &value, sizeof(value))) { 1760 res = -EFAULT; |
1761 } 1762 else { 1763 res = put_user(sizeof(value), ol); 1764 } 1765 1766 return res; 1767} 1768 --- 120 unchanged lines hidden --- | 1761 } 1762 else { 1763 res = put_user(sizeof(value), ol); 1764 } 1765 1766 return res; 1767} 1768 --- 120 unchanged lines hidden --- |