[bug report] blk-mq-sched: add framework for MQ capable IO schedulers

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

 



Hello Jens Axboe,

This is a semi-automatic email about new static checker warnings.

The patch bd166ef183c2: "blk-mq-sched: add framework for MQ capable
IO schedulers" from Jan 17, 2017, leads to the following Smatch
complaint:

block/elevator.c:234 elevator_init()
	 error: we previously assumed 'e' could be null (see line 229)

block/elevator.c
   228	
   229			if (!e) {
                            ^^
Null.

   230				printk(KERN_ERR
   231					"Default I/O scheduler not found. " \
   232					"Using noop/none.\n");
   233				if (q->mq_ops) {
   234					elevator_put(e);
                                        ^^^^^^^^^^^^^^^
This will Oops.

   235					return 0;
   236				}

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux