aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-07 16:05:44 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-07 16:05:44 -0500
commit75021d28594d9b6fb4d05bbc41f77948a0db0e02 (patch)
treebd0939df57e358ef248993b7be4ac1260cb3f3b1
parent6f1da317ac1df15f442b5fd37be7740c7cb55057 (diff)
parent8d090f47315507c3064ca4eefa9a1da52390b52e (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial updates from Jiri Kosina: "Trivial stuff from trivial tree that can be trivially summed up as: - treewide drop of spurious unlikely() before IS_ERR() from Viresh Kumar - cosmetic fixes (that don't really affect basic functionality of the driver) for pktcdvd and bcache, from Julia Lawall and Petr Mladek - various comment / printk fixes and updates all over the place" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: bcache: Really show state of work pending bit hwmon: applesmc: fix comment typos Kconfig: remove comment about scsi_wait_scan module class_find_device: fix reference to argument "match" debugfs: document that debugfs_remove*() accepts NULL and error values net: Drop unlikely before IS_ERR(_OR_NULL) mm: Drop unlikely before IS_ERR(_OR_NULL) fs: Drop unlikely before IS_ERR(_OR_NULL) drivers: net: Drop unlikely before IS_ERR(_OR_NULL) drivers: misc: Drop unlikely before IS_ERR(_OR_NULL) UBI: Update comments to reflect UBI_METAONLY flag pktcdvd: drop null test before destroy functions
-rw-r--r--drivers/base/class.c2
-rw-r--r--drivers/block/pktcdvd.c3
-rw-r--r--drivers/hwmon/applesmc.c4
-rw-r--r--drivers/md/bcache/closure.c4
-rw-r--r--drivers/misc/c2port/core.c2
-rw-r--r--drivers/mtd/ubi/gluebi.c4
-rw-r--r--drivers/net/ethernet/ti/netcp_core.c4
-rw-r--r--drivers/scsi/Kconfig7
-rw-r--r--fs/cifs/readdir.c2
-rw-r--r--fs/ecryptfs/inode.c2
-rw-r--r--fs/ext4/extents.c6
-rw-r--r--fs/ext4/namei.c2
-rw-r--r--fs/namei.c4
-rw-r--r--fs/ncpfs/dir.c2
-rw-r--r--fs/nfs/objlayout/objio_osd.c2
-rw-r--r--fs/proc/proc_sysctl.c2
-rw-r--r--mm/huge_memory.c2
-rw-r--r--net/openvswitch/datapath.c2
-rw-r--r--net/sctp/socket.c2
-rw-r--r--net/socket.c6
20 files changed, 27 insertions, 37 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 6e810881e48b..71059e32bebc 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -406,7 +406,7 @@ EXPORT_SYMBOL_GPL(class_for_each_device);
406 * 406 *
407 * Note, you will need to drop the reference with put_device() after use. 407 * Note, you will need to drop the reference with put_device() after use.
408 * 408 *
409 * @fn is allowed to do anything including calling back into class 409 * @match is allowed to do anything including calling back into class
410 * code. There's no locking restriction. 410 * code. There's no locking restriction.
411 */ 411 */
412struct device *class_find_device(struct class *class, struct device *start, 412struct device *class_find_device(struct class *class, struct device *start,
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 7be2375db7f2..cd813f9110bf 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -2803,8 +2803,7 @@ out_new_dev:
2803out_mem2: 2803out_mem2:
2804 put_disk(disk); 2804 put_disk(disk);
2805out_mem: 2805out_mem:
2806 if (pd->rb_pool) 2806 mempool_destroy(pd->rb_pool);
2807 mempool_destroy(pd->rb_pool);
2808 kfree(pd); 2807 kfree(pd);
2809out_mutex: 2808out_mutex:
2810 mutex_unlock(&ctl_mutex); 2809 mutex_unlock(&ctl_mutex);
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
index 0af63da6b603..1f5e956941b1 100644
--- a/drivers/hwmon/applesmc.c
+++ b/drivers/hwmon/applesmc.c
@@ -1138,7 +1138,7 @@ out:
1138 return ret; 1138 return ret;
1139} 1139}
1140 1140
1141/* Create accelerometer ressources */ 1141/* Create accelerometer resources */
1142static int applesmc_create_accelerometer(void) 1142static int applesmc_create_accelerometer(void)
1143{ 1143{
1144 struct input_dev *idev; 1144 struct input_dev *idev;
@@ -1191,7 +1191,7 @@ out:
1191 return ret; 1191 return ret;
1192} 1192}
1193 1193
1194/* Release all ressources used by the accelerometer */ 1194/* Release all resources used by the accelerometer */
1195static void applesmc_release_accelerometer(void) 1195static void applesmc_release_accelerometer(void)
1196{ 1196{
1197 if (!smcreg.has_accelerometer) 1197 if (!smcreg.has_accelerometer)
diff --git a/drivers/md/bcache/closure.c b/drivers/md/bcache/closure.c
index 7a228de95fd7..9eaf1d6e8302 100644
--- a/drivers/md/bcache/closure.c
+++ b/drivers/md/bcache/closure.c
@@ -167,8 +167,6 @@ EXPORT_SYMBOL(closure_debug_destroy);
167 167
168static struct dentry *debug; 168static struct dentry *debug;
169 169
170#define work_data_bits(work) ((unsigned long *)(&(work)->data))
171
172static int debug_seq_show(struct seq_file *f, void *data) 170static int debug_seq_show(struct seq_file *f, void *data)
173{ 171{
174 struct closure *cl; 172 struct closure *cl;
@@ -182,7 +180,7 @@ static int debug_seq_show(struct seq_file *f, void *data)
182 r & CLOSURE_REMAINING_MASK); 180 r & CLOSURE_REMAINING_MASK);
183 181
184 seq_printf(f, "%s%s%s%s\n", 182 seq_printf(f, "%s%s%s%s\n",
185 test_bit(WORK_STRUCT_PENDING, 183 test_bit(WORK_STRUCT_PENDING_BIT,
186 work_data_bits(&cl->work)) ? "Q" : "", 184 work_data_bits(&cl->work)) ? "Q" : "",
187 r & CLOSURE_RUNNING ? "R" : "", 185 r & CLOSURE_RUNNING ? "R" : "",
188 r & CLOSURE_STACK ? "S" : "", 186 r & CLOSURE_STACK ? "S" : "",
diff --git a/drivers/misc/c2port/core.c b/drivers/misc/c2port/core.c
index 464419b36440..cc8645b5369d 100644
--- a/drivers/misc/c2port/core.c
+++ b/drivers/misc/c2port/core.c
@@ -926,7 +926,7 @@ struct c2port_device *c2port_device_register(char *name,
926 926
927 c2dev->dev = device_create(c2port_class, NULL, 0, c2dev, 927 c2dev->dev = device_create(c2port_class, NULL, 0, c2dev,
928 "c2port%d", c2dev->id); 928 "c2port%d", c2dev->id);
929 if (unlikely(IS_ERR(c2dev->dev))) { 929 if (IS_ERR(c2dev->dev)) {
930 ret = PTR_ERR(c2dev->dev); 930 ret = PTR_ERR(c2dev->dev);
931 goto error_device_create; 931 goto error_device_create;
932 } 932 }
diff --git a/drivers/mtd/ubi/gluebi.c b/drivers/mtd/ubi/gluebi.c
index b93807b4c459..cb7c075f2144 100644
--- a/drivers/mtd/ubi/gluebi.c
+++ b/drivers/mtd/ubi/gluebi.c
@@ -112,8 +112,8 @@ static int gluebi_get_device(struct mtd_info *mtd)
112 * The MTD device is already referenced and this is just one 112 * The MTD device is already referenced and this is just one
113 * more reference. MTD allows many users to open the same 113 * more reference. MTD allows many users to open the same
114 * volume simultaneously and do not distinguish between 114 * volume simultaneously and do not distinguish between
115 * readers/writers/exclusive openers as UBI does. So we do not 115 * readers/writers/exclusive/meta openers as UBI does. So we do
116 * open the UBI volume again - just increase the reference 116 * not open the UBI volume again - just increase the reference
117 * counter and return. 117 * counter and return.
118 */ 118 */
119 gluebi->refcnt += 1; 119 gluebi->refcnt += 1;
diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c
index 9f9832f0dea9..37b9b39192ec 100644
--- a/drivers/net/ethernet/ti/netcp_core.c
+++ b/drivers/net/ethernet/ti/netcp_core.c
@@ -1036,7 +1036,7 @@ netcp_tx_map_skb(struct sk_buff *skb, struct netcp_intf *netcp)
1036 } 1036 }
1037 1037
1038 desc = knav_pool_desc_get(netcp->tx_pool); 1038 desc = knav_pool_desc_get(netcp->tx_pool);
1039 if (unlikely(IS_ERR_OR_NULL(desc))) { 1039 if (IS_ERR_OR_NULL(desc)) {
1040 dev_err(netcp->ndev_dev, "out of TX desc\n"); 1040 dev_err(netcp->ndev_dev, "out of TX desc\n");
1041 dma_unmap_single(dev, dma_addr, pkt_len, DMA_TO_DEVICE); 1041 dma_unmap_single(dev, dma_addr, pkt_len, DMA_TO_DEVICE);
1042 return NULL; 1042 return NULL;
@@ -1069,7 +1069,7 @@ netcp_tx_map_skb(struct sk_buff *skb, struct netcp_intf *netcp)
1069 } 1069 }
1070 1070
1071 ndesc = knav_pool_desc_get(netcp->tx_pool); 1071 ndesc = knav_pool_desc_get(netcp->tx_pool);
1072 if (unlikely(IS_ERR_OR_NULL(ndesc))) { 1072 if (IS_ERR_OR_NULL(ndesc)) {
1073 dev_err(netcp->ndev_dev, "out of TX desc for frags\n"); 1073 dev_err(netcp->ndev_dev, "out of TX desc for frags\n");
1074 dma_unmap_page(dev, dma_addr, buf_len, DMA_TO_DEVICE); 1074 dma_unmap_page(dev, dma_addr, buf_len, DMA_TO_DEVICE);
1075 goto free_descs; 1075 goto free_descs;
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index 95f7a76cfafc..d2f480b04a52 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -242,13 +242,6 @@ config SCSI_SCAN_ASYNC
242 system continues booting, and even probe devices on different 242 system continues booting, and even probe devices on different
243 busses in parallel, leading to a significant speed-up. 243 busses in parallel, leading to a significant speed-up.
244 244
245 If you have built SCSI as modules, enabling this option can
246 be a problem as the devices may not have been found by the
247 time your system expects them to have been. You can load the
248 scsi_wait_scan module to ensure that all scans have completed.
249 If you build your SCSI drivers into the kernel, then everything
250 will work fine if you say Y here.
251
252 You can override this choice by specifying "scsi_mod.scan=sync" 245 You can override this choice by specifying "scsi_mod.scan=sync"
253 or async on the kernel's command line. 246 or async on the kernel's command line.
254 247
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index b1eede3678a9..0557c45e9c33 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -84,7 +84,7 @@ cifs_prime_dcache(struct dentry *parent, struct qstr *name,
84 cifs_dbg(FYI, "%s: for %s\n", __func__, name->name); 84 cifs_dbg(FYI, "%s: for %s\n", __func__, name->name);
85 85
86 dentry = d_hash_and_lookup(parent, name); 86 dentry = d_hash_and_lookup(parent, name);
87 if (unlikely(IS_ERR(dentry))) 87 if (IS_ERR(dentry))
88 return; 88 return;
89 89
90 if (dentry) { 90 if (dentry) {
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 3c4db1172d22..e2e47ba5d313 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -270,7 +270,7 @@ ecryptfs_create(struct inode *directory_inode, struct dentry *ecryptfs_dentry,
270 270
271 ecryptfs_inode = ecryptfs_do_create(directory_inode, ecryptfs_dentry, 271 ecryptfs_inode = ecryptfs_do_create(directory_inode, ecryptfs_dentry,
272 mode); 272 mode);
273 if (unlikely(IS_ERR(ecryptfs_inode))) { 273 if (IS_ERR(ecryptfs_inode)) {
274 ecryptfs_printk(KERN_WARNING, "Failed to create file in" 274 ecryptfs_printk(KERN_WARNING, "Failed to create file in"
275 "lower filesystem\n"); 275 "lower filesystem\n");
276 rc = PTR_ERR(ecryptfs_inode); 276 rc = PTR_ERR(ecryptfs_inode);
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 3a6197a2e270..551353b1b17a 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -900,7 +900,7 @@ ext4_find_extent(struct inode *inode, ext4_lblk_t block,
900 900
901 bh = read_extent_tree_block(inode, path[ppos].p_block, --i, 901 bh = read_extent_tree_block(inode, path[ppos].p_block, --i,
902 flags); 902 flags);
903 if (unlikely(IS_ERR(bh))) { 903 if (IS_ERR(bh)) {
904 ret = PTR_ERR(bh); 904 ret = PTR_ERR(bh);
905 goto err; 905 goto err;
906 } 906 }
@@ -5796,7 +5796,7 @@ ext4_swap_extents(handle_t *handle, struct inode *inode1,
5796 int split = 0; 5796 int split = 0;
5797 5797
5798 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE); 5798 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE);
5799 if (unlikely(IS_ERR(path1))) { 5799 if (IS_ERR(path1)) {
5800 *erp = PTR_ERR(path1); 5800 *erp = PTR_ERR(path1);
5801 path1 = NULL; 5801 path1 = NULL;
5802 finish: 5802 finish:
@@ -5804,7 +5804,7 @@ ext4_swap_extents(handle_t *handle, struct inode *inode1,
5804 goto repeat; 5804 goto repeat;
5805 } 5805 }
5806 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); 5806 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE);
5807 if (unlikely(IS_ERR(path2))) { 5807 if (IS_ERR(path2)) {
5808 *erp = PTR_ERR(path2); 5808 *erp = PTR_ERR(path2);
5809 path2 = NULL; 5809 path2 = NULL;
5810 goto finish; 5810 goto finish;
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 19ce34525a59..a969ab39f302 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1429,7 +1429,7 @@ restart:
1429 } 1429 }
1430 num++; 1430 num++;
1431 bh = ext4_getblk(NULL, dir, b++, 0); 1431 bh = ext4_getblk(NULL, dir, b++, 0);
1432 if (unlikely(IS_ERR(bh))) { 1432 if (IS_ERR(bh)) {
1433 if (ra_max == 0) { 1433 if (ra_max == 0) {
1434 ret = bh; 1434 ret = bh;
1435 goto cleanup_and_exit; 1435 goto cleanup_and_exit;
diff --git a/fs/namei.c b/fs/namei.c
index 0d3340b32e14..6f567347f14f 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1966,7 +1966,7 @@ OK:
1966 if (err) { 1966 if (err) {
1967 const char *s = get_link(nd); 1967 const char *s = get_link(nd);
1968 1968
1969 if (unlikely(IS_ERR(s))) 1969 if (IS_ERR(s))
1970 return PTR_ERR(s); 1970 return PTR_ERR(s);
1971 err = 0; 1971 err = 0;
1972 if (unlikely(!s)) { 1972 if (unlikely(!s)) {
@@ -3380,7 +3380,7 @@ struct file *do_file_open_root(struct dentry *dentry, struct vfsmount *mnt,
3380 return ERR_PTR(-ELOOP); 3380 return ERR_PTR(-ELOOP);
3381 3381
3382 filename = getname_kernel(name); 3382 filename = getname_kernel(name);
3383 if (unlikely(IS_ERR(filename))) 3383 if (IS_ERR(filename))
3384 return ERR_CAST(filename); 3384 return ERR_CAST(filename);
3385 3385
3386 set_nameidata(&nd, -1, filename); 3386 set_nameidata(&nd, -1, filename);
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 93575e91a7aa..356816e7bc90 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -597,7 +597,7 @@ ncp_fill_cache(struct file *file, struct dir_context *ctx,
597 qname.name = __name; 597 qname.name = __name;
598 598
599 newdent = d_hash_and_lookup(dentry, &qname); 599 newdent = d_hash_and_lookup(dentry, &qname);
600 if (unlikely(IS_ERR(newdent))) 600 if (IS_ERR(newdent))
601 goto end_advance; 601 goto end_advance;
602 if (!newdent) { 602 if (!newdent) {
603 newdent = d_alloc(dentry, &qname); 603 newdent = d_alloc(dentry, &qname);
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index 5aaed363556a..5c0c6b58157f 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -124,7 +124,7 @@ objio_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev,
124 124
125retry_lookup: 125retry_lookup:
126 od = osduld_info_lookup(&odi); 126 od = osduld_info_lookup(&odi);
127 if (unlikely(IS_ERR(od))) { 127 if (IS_ERR(od)) {
128 err = PTR_ERR(od); 128 err = PTR_ERR(od);
129 dprintk("%s: osduld_info_lookup => %d\n", __func__, err); 129 dprintk("%s: osduld_info_lookup => %d\n", __func__, err);
130 if (err == -ENODEV && retry_flag) { 130 if (err == -ENODEV && retry_flag) {
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index fdda62e6115e..fe5b6e6c4671 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -948,7 +948,7 @@ static struct ctl_dir *get_subdir(struct ctl_dir *dir,
948found: 948found:
949 subdir->header.nreg++; 949 subdir->header.nreg++;
950failed: 950failed:
951 if (unlikely(IS_ERR(subdir))) { 951 if (IS_ERR(subdir)) {
952 pr_err("sysctl could not get directory: "); 952 pr_err("sysctl could not get directory: ");
953 sysctl_print_dir(dir); 953 sysctl_print_dir(dir);
954 pr_cont("/%*.*s %ld\n", 954 pr_cont("/%*.*s %ld\n",
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index f5c08b46fef8..00cfd1ae2271 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -151,7 +151,7 @@ static int start_stop_khugepaged(void)
151 if (!khugepaged_thread) 151 if (!khugepaged_thread)
152 khugepaged_thread = kthread_run(khugepaged, NULL, 152 khugepaged_thread = kthread_run(khugepaged, NULL,
153 "khugepaged"); 153 "khugepaged");
154 if (unlikely(IS_ERR(khugepaged_thread))) { 154 if (IS_ERR(khugepaged_thread)) {
155 pr_err("khugepaged: kthread_run(khugepaged) failed\n"); 155 pr_err("khugepaged: kthread_run(khugepaged) failed\n");
156 err = PTR_ERR(khugepaged_thread); 156 err = PTR_ERR(khugepaged_thread);
157 khugepaged_thread = NULL; 157 khugepaged_thread = NULL;
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 5633172b791a..91a8b004dc51 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -1175,7 +1175,7 @@ static int ovs_flow_cmd_set(struct sk_buff *skb, struct genl_info *info)
1175 info, OVS_FLOW_CMD_NEW, false, 1175 info, OVS_FLOW_CMD_NEW, false,
1176 ufid_flags); 1176 ufid_flags);
1177 1177
1178 if (unlikely(IS_ERR(reply))) { 1178 if (IS_ERR(reply)) {
1179 error = PTR_ERR(reply); 1179 error = PTR_ERR(reply);
1180 goto err_unlock_ovs; 1180 goto err_unlock_ovs;
1181 } 1181 }
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 17bef01b9aa3..897c01c029ca 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -4475,7 +4475,7 @@ static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval
4475 } 4475 }
4476 4476
4477 newfile = sock_alloc_file(newsock, 0, NULL); 4477 newfile = sock_alloc_file(newsock, 0, NULL);
4478 if (unlikely(IS_ERR(newfile))) { 4478 if (IS_ERR(newfile)) {
4479 put_unused_fd(retval); 4479 put_unused_fd(retval);
4480 sock_release(newsock); 4480 sock_release(newsock);
4481 return PTR_ERR(newfile); 4481 return PTR_ERR(newfile);
diff --git a/net/socket.c b/net/socket.c
index 9963a0b53a64..dd2c247c99e3 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -373,7 +373,7 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname)
373 373
374 file = alloc_file(&path, FMODE_READ | FMODE_WRITE, 374 file = alloc_file(&path, FMODE_READ | FMODE_WRITE,
375 &socket_file_ops); 375 &socket_file_ops);
376 if (unlikely(IS_ERR(file))) { 376 if (IS_ERR(file)) {
377 /* drop dentry, keep inode */ 377 /* drop dentry, keep inode */
378 ihold(d_inode(path.dentry)); 378 ihold(d_inode(path.dentry));
379 path_put(&path); 379 path_put(&path);
@@ -1303,7 +1303,7 @@ SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol,
1303 } 1303 }
1304 1304
1305 newfile1 = sock_alloc_file(sock1, flags, NULL); 1305 newfile1 = sock_alloc_file(sock1, flags, NULL);
1306 if (unlikely(IS_ERR(newfile1))) { 1306 if (IS_ERR(newfile1)) {
1307 err = PTR_ERR(newfile1); 1307 err = PTR_ERR(newfile1);
1308 goto out_put_unused_both; 1308 goto out_put_unused_both;
1309 } 1309 }
@@ -1467,7 +1467,7 @@ SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr,
1467 goto out_put; 1467 goto out_put;
1468 } 1468 }
1469 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); 1469 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
1470 if (unlikely(IS_ERR(newfile))) { 1470 if (IS_ERR(newfile)) {
1471 err = PTR_ERR(newfile); 1471 err = PTR_ERR(newfile);
1472 put_unused_fd(newfd); 1472 put_unused_fd(newfd);
1473 sock_release(newsock); 1473 sock_release(newsock);