[openib-general] [PATCH ] ofascripts Remove patches/user_fixes/roland_fixes.patch
Steve Wise
swise at opengridcomputing.com
Thu Jan 18 12:25:54 PST 2007
This has been incorporated into roland's tree.
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---
patches/user_fixes/roland_fixes.patch | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
diff --git a/patches/user_fixes/roland_fixes.patch b/patches/user_fixes/roland_fixes.patch
deleted file mode 100644
index 3f02d27..0000000
--- a/patches/user_fixes/roland_fixes.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-asprintf returns the number of bytes printed,
-so the way to check for failure is < 0.
-
-Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
-
-diff --git g/src/userspace/libibverbs/src/device.c b/src/userspace/libibverbs/src/device.c
-index f7ef224..96f906c 100644
---- a/src/userspace/libibverbs/src/device.c
-+++ b/src/userspace/libibverbs/src/device.c
-@@ -111,7 +111,7 @@ struct ibv_context *ibv_open_device(struct ibv_device *device)
- int cmd_fd;
- struct ibv_context *context;
-
-- if (asprintf(&devpath, "/dev/infiniband/%s", device->dev_name))
-+ if (asprintf(&devpath, "/dev/infiniband/%s", device->dev_name) < 0)
- return NULL;
-
- /*
-diff --git a/src/userspace/libibverbs/src/sysfs.c b/src/userspace/libibverbs/src/sysfs.c
-index 392a675..85aee39 100644
---- a/src/userspace/libibverbs/src/sysfs.c
-+++ b/src/userspace/libibverbs/src/sysfs.c
-@@ -82,7 +82,7 @@ int ibv_read_sysfs_file(const char *dir, const char *file,
- int fd;
- int len;
-
-- if (asprintf(&path, "%s/%s", dir, file))
-+ if (asprintf(&path, "%s/%s", dir, file) < 0)
- return -1;
-
- fd = open(path, O_RDONLY);
More information about the general
mailing list