Project

General

Profile

Actions

Feature #3313

open

134: Error handling for critical functions in probe()

Added by Mikhail Mandrykin about 12 years ago. Updated about 10 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.

Actions #1

Updated by Vitaly Mordan about 10 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).

Actions #2

Updated by Vitaly Mordan about 10 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.

Actions

Also available in: Atom PDF