Patch "bcache: silence static checker warning" has been added to the 4.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    bcache: silence static checker warning

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bcache-silence-static-checker-warning.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From da22f0eea555baf9b0a84b52afe56db2052cfe8d Mon Sep 17 00:00:00 2001
From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Wed, 6 Sep 2017 14:26:00 +0800
Subject: bcache: silence static checker warning

From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

commit da22f0eea555baf9b0a84b52afe56db2052cfe8d upstream.

In olden times, closure_return() used to have a hidden return built in.
We removed the hidden return but forgot to add a new return here.  If
"c" were NULL we would oops on the next line, but fortunately "c" is
never NULL.  Let's just remove the if statement.

Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Reviewed-by: Coly Li <colyli@xxxxxxx>
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/md/bcache/super.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1398,9 +1398,6 @@ static void cache_set_flush(struct closu
 	struct btree *b;
 	unsigned i;
 
-	if (!c)
-		closure_return(cl);
-
 	bch_cache_accounting_destroy(&c->accounting);
 
 	kobject_put(&c->internal);


Patches currently in stable-queue which might be from dan.carpenter@xxxxxxxxxx are

queue-4.9/input-nomadik-ske-keypad-fix-a-loop-timeout-test.patch
queue-4.9/drm-etnaviv-null-vs-is_err-buf-in-etnaviv_core_dump.patch
queue-4.9/media-davinci-vpbe-array-underflow-in-vpbe_enum_outp.patch
queue-4.9/ib-iser-fix-dma_nents-type-definition.patch
queue-4.9/media-wl128x-fix-an-error-code-in-fm_download_firmwa.patch
queue-4.9/6lowpan-off-by-one-handling-nexthdr.patch
queue-4.9/platform-x86-alienware-wmi-printing-the-wrong-error-.patch
queue-4.9/media-omap_vout-potential-buffer-overflow-in-vidioc_.patch
queue-4.9/drivers-rapidio-rio_cm.c-fix-potential-oops-in-riocm.patch
queue-4.9/bcache-silence-static-checker-warning.patch
queue-4.9/kdb-do-a-sanity-check-on-the-cpu-in-kdb_per_cpu.patch
queue-4.9/net-broadcom-bcmsysport-fix-signedness-in-bcm_syspor.patch
queue-4.9/media-ivtv-update-pos-correctly-in-ivtv_read_pos.patch
queue-4.9/drm-virtio-fix-bounds-check-in-virtio_gpu_cmd_get_ca.patch
queue-4.9/net-netem-fix-error-path-for-corrupted-gso-frames.patch
queue-4.9/of-mdio-fix-a-signedness-bug-in-of_phy_get_and_conne.patch
queue-4.9/net-hisilicon-fix-signedness-bug-in-hix5hd2_dev_prob.patch
queue-4.9/soc-fsl-qe-fix-an-error-code-in-qe_pin_request.patch
queue-4.9/xen-cpu_hotplug-prevent-an-out-of-bounds-access.patch
queue-4.9/net-stmmac-dwmac-meson8b-fix-signedness-bug-in-probe.patch
queue-4.9/net-ethernet-stmmac-fix-signedness-bug-in-ipq806x_gm.patch
queue-4.9/staging-greybus-light-fix-a-couple-double-frees.patch
queue-4.9/partially-revert-kfifo-fix-kfifo_alloc-and-kfifo_ini.patch
queue-4.9/media-cx18-update-pos-correctly-in-cx18_read_pos.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux