diff options
| author | Lei Maohui <leimaohui@fujitsu.com> | 2025-04-07 18:40:25 +0800 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-04-09 20:56:11 +0000 |
| commit | d870d20c2e7c80da03b7879a56c3970a1e9fa021 (patch) | |
| tree | ba0605b2d97ada08c5918eb6f1971d37b9605cd0 /meta-openstack/recipes-connectivity | |
| parent | 325d7a5c733bad08cbae2a34c0e09ff438a693bd (diff) | |
| download | meta-cloud-services-d870d20c2e7c80da03b7879a56c3970a1e9fa021.tar.gz | |
open-iscsi-user: fix calloc-transposed-args issue
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-connectivity')
| -rw-r--r-- | meta-openstack/recipes-connectivity/open-iscsi/files/0001-Fix-the-calloc-transposed-args-issue.patch | 32 | ||||
| -rw-r--r-- | meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-openstack/recipes-connectivity/open-iscsi/files/0001-Fix-the-calloc-transposed-args-issue.patch b/meta-openstack/recipes-connectivity/open-iscsi/files/0001-Fix-the-calloc-transposed-args-issue.patch new file mode 100644 index 0000000..3b4acd8 --- /dev/null +++ b/meta-openstack/recipes-connectivity/open-iscsi/files/0001-Fix-the-calloc-transposed-args-issue.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 5a16752432b486b8e1d299142723ded284b81984 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Lei Maohui <leimaohui@fujitsu.com> | ||
| 3 | Date: Mon, 7 Apr 2025 06:47:46 +0000 | ||
| 4 | Subject: [PATCH] Fix the calloc-transposed-args issue | ||
| 5 | |||
| 6 | | fwparam_ppc.c:349:45: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] | ||
| 7 | | 349 | dev = calloc(sizeof(struct ofw_dev), 1); | ||
| 8 | | | ^~~~~~ | ||
| 9 | | fwparam_ppc.c:349:45: note: earlier argument should specify number of elements, later size of each element | ||
| 10 | |||
| 11 | Upstream-Status: Submitted [https://github.com/open-iscsi/open-iscsi/pull/504] | ||
| 12 | Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> | ||
| 13 | --- | ||
| 14 | usr/fwparam_ibft/fwparam_ppc.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/usr/fwparam_ibft/fwparam_ppc.c b/usr/fwparam_ibft/fwparam_ppc.c | ||
| 18 | index 7013d6c..74df13d 100644 | ||
| 19 | --- a/usr/fwparam_ibft/fwparam_ppc.c | ||
| 20 | +++ b/usr/fwparam_ibft/fwparam_ppc.c | ||
| 21 | @@ -346,7 +346,7 @@ static int find_initiator(const char *fpath, | ||
| 22 | "/aliases/iscsi-disk"))) { | ||
| 23 | |||
| 24 | if (dev_count < OFWDEV_MAX) { | ||
| 25 | - dev = calloc(sizeof(struct ofw_dev), 1); | ||
| 26 | + dev = calloc(1, sizeof(struct ofw_dev)); | ||
| 27 | if (!dev) | ||
| 28 | return -ENOMEM; | ||
| 29 | |||
| 30 | -- | ||
| 31 | 2.43.0 | ||
| 32 | |||
diff --git a/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb b/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb index 1f84508..7fc9ea2 100644 --- a/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb +++ b/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "git://github.com/open-iscsi/open-iscsi.git;protocol=https;branch=mast | |||
| 13 | file://0001-Makefile-Fix-build-error-of-cross-build.patch \ | 13 | file://0001-Makefile-Fix-build-error-of-cross-build.patch \ |
| 14 | file://0001-Fix-usr-bin-sed-to-sed.patch \ | 14 | file://0001-Fix-usr-bin-sed-to-sed.patch \ |
| 15 | file://0001-Modified-path-of-systemd-service-from-usr-lib-to-lib.patch \ | 15 | file://0001-Modified-path-of-systemd-service-from-usr-lib-to-lib.patch \ |
| 16 | file://0001-Fix-the-calloc-transposed-args-issue.patch \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | SRCREV = "7b53fcc502da8617110fd64d675b476772c28a6f" | 19 | SRCREV = "7b53fcc502da8617110fd64d675b476772c28a6f" |
