~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to drivers/target/iscsi/iscsi_target.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Ubuntu: 3.5.0-25.38
  • Date: 2013-02-20 22:03:31 UTC
  • mfrom: (74.1.1 quantal-proposed)
  • Revision ID: package-import@ubuntu.com-20130220220331-0ea4l33x3cr61nch
Tags: 3.5.0-220.28
* Release Tracking Bug
  - LP: #1130311

[ Paolo Pisati ]

* rebased on Ubuntu-3.5.0-25.38

[ Ubuntu: 3.5.0-25.38 ]

* Release Tracking Bug
  - LP: #1129472
* ptrace: introduce signal_wake_up_state() and ptrace_signal_wake_up()
  - LP: #1119885, #1129192
  - CVE-2013-0871
* ptrace: ensure arch_ptrace/ptrace_request can never race with SIGKILL
  - LP: #1119885, #1129192
  - CVE-2013-0871
* wake_up_process() should be never used to wakeup a TASK_STOPPED/TRACED
  task
  - LP: #1119885, #1129192
  - CVE-2013-0871

Show diffs side-by-side

added added

removed removed

Lines of Context:
735
735
        list_for_each_entry(cmd, &conn->conn_cmd_list, i_conn_node) {
736
736
                spin_lock(&cmd->istate_lock);
737
737
                if ((cmd->i_state == ISTATE_SENT_STATUS) &&
738
 
                    (cmd->stat_sn < exp_statsn)) {
 
738
                    iscsi_sna_lt(cmd->stat_sn, exp_statsn)) {
739
739
                        cmd->i_state = ISTATE_REMOVE;
740
740
                        spin_unlock(&cmd->istate_lock);
741
741
                        iscsit_add_cmd_to_immediate_queue(cmd, conn,
2382
2382
        if (!conn_p)
2383
2383
                return;
2384
2384
 
2385
 
        cmd = iscsit_allocate_cmd(conn_p, GFP_KERNEL);
 
2385
        cmd = iscsit_allocate_cmd(conn_p, GFP_ATOMIC);
2386
2386
        if (!cmd) {
2387
2387
                iscsit_dec_conn_usage_count(conn_p);
2388
2388
                return;