Showing error 1269

User: Jiri Slaby
Error type: Leaving function in locked state
Error type description: Some lock is not unlocked on all paths of a function, so it is leaked
File location: drivers/ide/ide-iops.c
Line in file: 356
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-21 20:30:05 UTC


Source:

 326
 327        if (io_32bit) {
 328                unsigned long uninitialized_var(flags);
 329
 330                if ((io_32bit & 2) && !mmio) {
 331                        local_irq_save(flags);
 332                        ata_vlb_sync(io_ports->nsect_addr);
 333                }
 334
 335                if (mmio)
 336                        __ide_mm_outsl((void __iomem *)data_addr, buf, len / 4);
 337                else
 338                        outsl(data_addr, buf, len / 4);
 339
 340                if ((io_32bit & 2) && !mmio)
 341                        local_irq_restore(flags);
 342
 343                if ((len & 3) >= 2) {
 344                        if (mmio)
 345                                __ide_mm_outsw((void __iomem *)data_addr,
 346                                                 (u8 *)buf + (len & ~3), 1);
 347                        else
 348                                outsw(data_addr, (u8 *)buf + (len & ~3), 1);
 349                }
 350        } else {
 351                if (mmio)
 352                        __ide_mm_outsw((void __iomem *)data_addr, buf, len / 2);
 353                else
 354                        outsw(data_addr, buf, len / 2);
 355        }
 356}
 357EXPORT_SYMBOL_GPL(ide_output_data);
 358
 359u8 ide_read_error(ide_drive_t *drive)
 360{
 361        ide_task_t task;
 362
 363        memset(&task, 0, sizeof(task));
 364        task.tf_flags = IDE_TFLAG_IN_FEATURE;
 365
 366        drive->hwif->tp_ops->tf_read(drive, &task);
Show full sources