Showing error 1814

User: Jiri Slaby
Error type: Invalid Pointer Dereference
Error type description: A pointer which is invalid is being dereferenced
File location: drivers/message/fusion/mptbase.c
Line in file: 2350
Project: Linux Kernel
Project version: 2.6.28
Tools: Smatch (1.59)
Entered: 2013-09-11 08:47:26 UTC


Source:

2320
2321                        /* Check, and possibly reset, the coalescing value
2322                         */
2323                        mpt_read_ioc_pg_1(ioc);
2324
2325                        mpt_read_ioc_pg_4(ioc);
2326                }
2327
2328                GetIoUnitPage2(ioc);
2329                mpt_get_manufacturing_pg_0(ioc);
2330        }
2331
2332        /*
2333         * Call each currently registered protocol IOC reset handler
2334         * with post-reset indication.
2335         * NOTE: If we're doing _IOC_BRINGUP, there can be no
2336         * MptResetHandlers[] registered yet.
2337         */
2338        if (hard_reset_done) {
2339                rc = handlers = 0;
2340                for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) {
2341                        if ((ret == 0) && MptResetHandlers[cb_idx]) {
2342                                dprintk(ioc, printk(MYIOC_s_DEBUG_FMT
2343                                    "Calling IOC post_reset handler #%d\n",
2344                                    ioc->name, cb_idx));
2345                                rc += mpt_signal_reset(cb_idx, ioc, MPT_IOC_POST_RESET);
2346                                handlers++;
2347                        }
2348
2349                        if (alt_ioc_ready && MptResetHandlers[cb_idx]) {
2350                                drsprintk(ioc, printk(MYIOC_s_DEBUG_FMT
2351                                    "Calling IOC post_reset handler #%d\n",
2352                                    ioc->alt_ioc->name, cb_idx));
2353                                rc += mpt_signal_reset(cb_idx, ioc->alt_ioc, MPT_IOC_POST_RESET);
2354                                handlers++;
2355                        }
2356                }
2357                /* FIXME?  Examine results here? */
2358        }
2359
2360 out:
Show full sources