Project

General

Profile

Feature #3313

134: Error handling for critical functions in probe()

Added by Mikhail Mandrykin over 6 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Start date:
07/31/2012
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

There are several "critical" functions that should normally cause probe() to return nonzero value in case of unsuccessful call. Possible examples are dma_set_mask and usb_register_dev.
Sample commit in linux_stable fixing error handling for dma_set_mask: eb9a2a9.

History

#1 Updated by Vitaly Mordan over 4 years ago

Unnecessary headers
#include <linux/usb.h>
#include <linux/netdevice.h>
may cause Aspectator to failed at 'instrumentation' stage (for example, module drivers/media/usb/gspca/gspca_main.ko, kernel 3.16-rc1).

#2 Updated by Vitaly Mordan over 4 years ago

Unnecessary semicolon in define:
around: define(usb_register(driver)) {
ldv_usb_register();
}
This causes Aspectator to failed, for example, at 'drivers/usb/core/usbcore.ko' module.

Also available in: Atom PDF