Page MenuHomeFreeBSD

D25765.diff
No OneTemporary

D25765.diff

Index: head/sys/fs/cuse/cuse.c
===================================================================
--- head/sys/fs/cuse/cuse.c
+++ head/sys/fs/cuse/cuse.c
@@ -425,8 +425,6 @@
int error;
mem = malloc(sizeof(*mem), M_CUSE, M_WAITOK | M_ZERO);
- if (mem == NULL)
- return (ENOMEM);
object = vm_pager_allocate(OBJT_SWAP, NULL, PAGE_SIZE * page_count,
VM_PROT_DEFAULT, 0, curthread->td_ucred);
@@ -748,8 +746,6 @@
struct cuse_server *pcs;
pcs = malloc(sizeof(*pcs), M_CUSE, M_WAITOK | M_ZERO);
- if (pcs == NULL)
- return (ENOMEM);
if (devfs_set_cdevpriv(pcs, &cuse_server_free)) {
printf("Cuse: Cannot set cdevpriv.\n");
@@ -1217,10 +1213,6 @@
pcsd = malloc(sizeof(*pcsd), M_CUSE, M_WAITOK | M_ZERO);
- if (pcsd == NULL) {
- error = ENOMEM;
- break;
- }
pcsd->server = pcs;
pcsd->user_dev = pcd->dev;
@@ -1430,11 +1422,6 @@
}
pcc = malloc(sizeof(*pcc), M_CUSE, M_WAITOK | M_ZERO);
- if (pcc == NULL) {
- /* drop reference on server */
- cuse_server_unref(pcs);
- return (ENOMEM);
- }
if (devfs_set_cdevpriv(pcc, &cuse_client_free)) {
printf("Cuse: Cannot set cdevpriv.\n");
/* drop reference on server */

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 21, 6:29 AM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16001971
Default Alt Text
D25765.diff (1 KB)

Event Timeline