From: Greg Kroah-Hartman Date: Tue, 28 Jan 2020 12:04:52 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v4.4.212~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25133e9bc2f3fc0341509257351b40bc1e5a03f6;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: md-avoid-namespace-collision-with-bitmap-api.patch --- diff --git a/queue-4.4/md-avoid-namespace-collision-with-bitmap-api.patch b/queue-4.4/md-avoid-namespace-collision-with-bitmap-api.patch new file mode 100644 index 00000000000..eb15d5b1cdc --- /dev/null +++ b/queue-4.4/md-avoid-namespace-collision-with-bitmap-api.patch @@ -0,0 +1,65 @@ +From foo@baz Tue 28 Jan 2020 12:49:12 PM CET +Date: Tue, 28 Jan 2020 12:49:12 +0100 +To: Greg KH +From: Greg Kroah-Hartman +Subject: md: Avoid namespace collision with bitmap API + +From: Andy Shevchenko + +commit e64e4018d572710c44f42c923d4ac059f0a23320 upstream. + +bitmap API (include/linux/bitmap.h) has 'bitmap' prefix for its methods. + +On the other hand MD bitmap API is special case. +Adding 'md' prefix to it to avoid name space collision. + +No functional changes intended. + +Signed-off-by: Andy Shevchenko +Acked-by: Shaohua Li +Signed-off-by: Dmitry Torokhov +[only take the bitmap_free change for stable - gregkh] +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/md/bitmap.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +--- a/drivers/md/bitmap.c ++++ b/drivers/md/bitmap.c +@@ -1671,7 +1671,7 @@ void bitmap_flush(struct mddev *mddev) + /* + * free memory that was allocated + */ +-static void bitmap_free(struct bitmap *bitmap) ++static void md_bitmap_free(struct bitmap *bitmap) + { + unsigned long k, pages; + struct bitmap_page *bp; +@@ -1721,7 +1721,7 @@ void bitmap_destroy(struct mddev *mddev) + if (bitmap->sysfs_can_clear) + sysfs_put(bitmap->sysfs_can_clear); + +- bitmap_free(bitmap); ++ md_bitmap_free(bitmap); + } + + /* +@@ -1805,7 +1805,7 @@ struct bitmap *bitmap_create(struct mdde + + return bitmap; + error: +- bitmap_free(bitmap); ++ md_bitmap_free(bitmap); + return ERR_PTR(err); + } + +@@ -1904,7 +1904,7 @@ int bitmap_copy_from_slot(struct mddev * + *low = lo; + *high = hi; + err: +- bitmap_free(bitmap); ++ md_bitmap_free(bitmap); + return rv; + } + EXPORT_SYMBOL_GPL(bitmap_copy_from_slot); diff --git a/queue-4.4/series b/queue-4.4/series index 125786e8d19..d905c157c0c 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -176,6 +176,7 @@ tracing-xen-ordered-comparison-of-function-pointers.patch do_last-fetch-directory-i_mode-and-i_uid-before-it-s-too-late.patch iio-buffer-align-the-size-of-scan-bytes-to-size-of-the-largest-element.patch scsi-iscsi-avoid-potential-deadlock-in-iscsi_if_rx-func.patch +md-avoid-namespace-collision-with-bitmap-api.patch bitmap-add-bitmap_alloc-bitmap_zalloc-and-bitmap_free.patch netfilter-ipset-use-bitmap-infrastructure-completely.patch net-x25-fix-nonblocking-connect.patch