nfs4: Make sure Request::fNext is initially NULL

This commit is contained in:
Pawel Dziepak 2013-02-13 20:21:53 +01:00
parent 266b99b7e9
commit a4caa431e4
2 changed files with 7 additions and 3 deletions

View File

@ -46,6 +46,7 @@ RequestManager::AddRequest(Request* request)
else
fQueueHead = request;
fQueueTail = request;
request->fNext = NULL;
}

View File

@ -41,6 +41,9 @@ public:
private:
mutex fLock;
// Neither SinglyLinkedList nor DoublyLinkedList is what we want
// here. And DoublyLinkedQueue is not even a queue.
Request* fQueueHead;
Request* fQueueTail;
@ -72,8 +75,8 @@ public:
status_t Repair();
inline const PeerAddress& ID() const;
inline PeerAddress LocalID() const;
inline const PeerAddress& ID() const;
inline PeerAddress LocalID() const;
inline ProgramData* PrivateData();
inline void SetPrivateData(ProgramData* privateData);
@ -94,7 +97,7 @@ private:
RequestManager fRequests;
Connection* fConnection;
const PeerAddress* fAddress;
const PeerAddress* fAddress;
ProgramData* fPrivateData;