<B><FONT FACE="Book Antiqua" SIZE=3><P ALIGN="RIGHT">Exhibit 10.17</P>
</B><P ALIGN="RIGHT"></P>
<B><P ALIGN="CENTER">MASTER AMENDMENT NO. 2</P>
<P ALIGN="CENTER">TO</P>
<P ALIGN="CENTER">CAPITAL SUPPORT AGREEMENTS </P>
</B><P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY"> </P>
<P ALIGN="JUSTIFY">	This Master Amendment No. 2 to Capital Support Agreements is dated as of December 1, 2008 (the "<U>Amendment</U>"), by and among <B>LEGG MASON, INC.</B>, a Maryland corporation ("<U>Legg Mason</U>"), <B>LM CAPITAL COMPANY, LLC</B>, a Maryland limited liability company ("<U>LMC</U>"), <B>LM CAPITAL SUPPORT I, LLC</B>, a Maryland limited liability company ("<U>LMCSI</U>"), <B>LM CAPITAL SUPPORT II, LLC</B>, a Maryland limited liability company ("<U>LMCSII</U>"), <B>LM CAPITAL SUPPORT III, LLC</B>, a Maryland limited liability company ("<U>LMCSIII</U>"), <B>LM CAPITAL SUPPORT IV, LLC</B>, a Maryland limited liability company ("<U>LMCSIV</U>" and, collectively with Legg Mason, LMC, LMCSI, LMCSII and LMCSIII, the "<U>Support Providers</U>" and each, individually, a "<U>Support Provider</U>") and <B>LIQUID RESERVES PORTFOLIO</B>, a series of Master Portfolio Trust (the "<U>Fund</U>"), amending certain provisions of (a) the Capital Support Agreement dated as of March 31, 2008 by and among Legg Mason, LMC and the Fund (as amended and in effect from time to time, the "<U>LMC CSA</U>"); (b) the Capital Support Agreement dated as of March 31, 2008 by and among Legg Mason, LMCSI and the Fund (as amended and in effect from time to time, the "<U>LMCSI CSA</U>"); (c) the Capital Support Agreement dated as of March 31, 2008 by and among Legg Mason, LMCSII and the Fund (as amended and in effect from time to time, the "<U>LMCSII CSA</U>"); (d) the Capital Support Agreement dated as of March 31, 2008 by and among Legg Mason, LMCSIII and the Fund (as amended and in effect from time to time, the "<U>LMCSIII CSA</U>"); and (e) the Capital Support Agreement dated as of March 31, 2008 by and among Legg Mason, LMCSIV and the Fund (as amended and in effect from time to time, the "<U>LMCSIV CSA</U>" and, collectively with the LMC CSA, the LMCSI CSA, the LMCSII CSA and the LMCSIII CSA, the "<U>Capital Support Agreements</U>" and each, individually, a "<U>Capital Support Agreement</U>").</P>
<P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>WHEREAS</B>, each Support Provider and the Fund have agreed to modify certain terms and conditions of each Capital Support Agreement to which they are a party as specifically set forth in this Amendment;</P>
<P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>NOW, THEREFORE</B>, in consideration of the premises and the mutual agreements contained herein and for other good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, the parties hereto hereby agree as follows:</P>
<B><P ALIGN="JUSTIFY">Section 1.	<U>Amendment to LMC CSA</U>.</B>  Legg Mason, LMC and the Fund hereby agree that the LMC CSA is hereby amended as follows:</P>
<P ALIGN="JUSTIFY">(a)	the definition of "Maximum Contribution Amount" set forth in Section 1(f) of the LMC CSA is hereby amended by deleting such definition in its entirety and restating it as follows:</P></FONT>
<P ALIGN="CENTER"><CENTER><TABLE CELLSPACING=0 BORDER=0 WIDTH=738>
<TR><TD VALIGN="TOP"> </TD>
</TR>
<TR><TD VALIGN="TOP" BGCOLOR="#000000" HEIGHT=1><P></P></TD>
</TR>
<TR><TD VALIGN="TOP" HEIGHT=4><P></P></TD>
</TR>
</TABLE>
</CENTER></P>
<DIR>
<DIR>

<FONT FACE="Book Antiqua" SIZE=3><P ALIGN="JUSTIFY">"Maximum Contribution Amount" means $500,000,000.</P></DIR>
</DIR>

<P ALIGN="JUSTIFY">(b)	Section 3(a) of the LMC CSA is hereby amended by deleting Section 3(a) in its entirety and restating it as follows:</P><DIR>
<DIR>

<P ALIGN="JUSTIFY">(a)	If a Contribution Event occurs prior to the occurrence of a Termination Event, the Support Provider will make a Capital Contribution in an amount equal to the lower of (i) seventy 76.92% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount reduced by the amount of any Capital Contribution previously made by either Support Provider to the Fund under this Agreement.  The parties hereto acknowledge that the Related CSA of the Related LMCS Support Providers provides for a Capital Contribution to be made by the Related LMCS Support Providers under its Related CSA in an amount equal to the lower of (i) 15.39% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA  of the Related LMCS Support Providers reduced by the amount of any Capital Contributions previously made by either Related LMCS Support Provider to the Fund under that Related CSA, and the Related CSA of the Related LMCS2 Support Providers provides for a Capital Contribution to be made by the Related LMCS2 Support Providers thereunder in an amount equal to the lower of (i) 7.69% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA of the Related LMCS2 Support Providers reduced by the amount of any Capital Contributions previously made by either Related LMCS2 Support Provider to the Fund under that Related CSA.</P></DIR>
</DIR>

<B><P ALIGN="JUSTIFY">Section 2.	<U>Amendment to LMCSI CSA</U>.</B>  Legg Mason, LMCSI and the Fund hereby agree that Section 3(a) of the LMCSI CSA is hereby amended by deleting Section 3(a) in its entirety and restating it as follows:</P><DIR>
<DIR>

<P ALIGN="JUSTIFY">(a)	If a Contribution Event occurs prior to the occurrence of a Termination Event, the Support Provider will make a Capital Contribution in an amount equal to the lower of (i) 15.39% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount reduced by the amount of any Capital Contribution previously made by either Support Provider to the Fund under this Agreement.  The parties hereto acknowledge that the Related CSA of the Related LMC Support Providers provides for a Capital Contribution to be made by the Related LMC Support Providers under its Related CSA in an amount equal to the lower of (i) 76.92% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA  of the Related LMC Support Providers reduced by the amount of any Capital Contributions previously made by either Related LMC Support Provider to the Fund under that Related CSA, and the Related CSA of the Related </P></DIR>
</DIR>
</FONT>
<P ALIGN="CENTER"><CENTER><TABLE CELLSPACING=0 BORDER=0 WIDTH=738>
<TR><TD VALIGN="TOP">
<FONT SIZE=2><P ALIGN="CENTER">2</FONT></TD>
</TR>
<TR><TD VALIGN="TOP" BGCOLOR="#000000" HEIGHT=1><P></P></TD>
</TR>
<TR><TD VALIGN="TOP" HEIGHT=4><P></P></TD>
</TR>
</TABLE>
</CENTER></P>
<DIR>
<DIR>

<FONT FACE="Book Antiqua" SIZE=3><P ALIGN="JUSTIFY">LMCS2 Support Providers provides for a Capital Contribution to be made by the Related LMCS2 Support Providers thereunder in an amount equal to the lower of (i) 7.69% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA of the Related LMCS2 Support Providers reduced by the amount of any Capital Contributions previously made by either Related LMCS2 Support Provider to the Fund under that Related CSA.</P></DIR>
</DIR>

<B><P ALIGN="JUSTIFY">Section 3.	<U>Amendment to LMCSII CSA</U>.</B>  Legg Mason, LMCSII and the Fund hereby agree that Section 3(a) of the LMCSII CSA is hereby amended by deleting Section 3(a) in its entirety and restating it as follows:</P><DIR>
<DIR>

<P ALIGN="JUSTIFY">(a)	If a Contribution Event occurs prior to the occurrence of a Termination Event, the Support Provider will make a Capital Contribution in an amount equal to the lower of (i) 7.69% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount reduced by the amount of any Capital Contribution previously made by either Support Provider to the Fund under this Agreement.  The parties hereto acknowledge that the Related CSA of the Related LMC Support Providers provides for a Capital Contribution to be made by the Related LMC Support Providers under its Related CSA in an amount equal to the lower of (i) 76.92% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA  of the Related LMC Support Providers reduced by the amount of any Capital Contributions previously made by either Related LMC Support Provider to the Fund under that Related CSA, and the Related CSA of the Related LMCS Support Providers provides for a Capital Contribution to be made by the Related LMCS Support Providers thereunder in an amount equal to the lower of (i) 15.39% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA of the Related LMCS Support Providers reduced by the amount of any Capital Contributions previously made by either Related LMCS Support Provider to the Fund under that Related CSA.</P></DIR>
</DIR>

<B><P ALIGN="JUSTIFY">Section 4.	<U>Amendment to LMCSIII CSA</U>.</B>  Legg Mason, LMCSIII and the Fund hereby agree that the LMCSIII CSA is hereby amended as follows:</P>
<P ALIGN="JUSTIFY">(a)	the definition of "Maximum Contribution Amount" set forth in Section 1(f) of the LMCSIII CSA is hereby amended by deleting such definition in its entirety and restating it as follows:</P><DIR>
<DIR>

<P ALIGN="JUSTIFY">"Maximum Contribution Amount" means $200,000,000.</P></DIR>
</DIR>

<P ALIGN="JUSTIFY">(b)	Section 3(a) of the LMCSIII CSA is hereby amended by deleting Section 3(a) in its entirety and restating it as follows:</P></FONT>
<P ALIGN="CENTER"><CENTER><TABLE CELLSPACING=0 BORDER=0 WIDTH=738>
<TR><TD VALIGN="TOP">
<FONT SIZE=2><P ALIGN="CENTER">3</FONT></TD>
</TR>
<TR><TD VALIGN="TOP" BGCOLOR="#000000" HEIGHT=1><P></P></TD>
</TR>
<TR><TD VALIGN="TOP" HEIGHT=4><P></P></TD>
</TR>
</TABLE>
</CENTER></P>
<DIR>
<DIR>

<FONT FACE="Book Antiqua" SIZE=3><P ALIGN="JUSTIFY">(a)	If a Contribution Event occurs prior to the occurrence of a Termination Event, the Support Provider will make a Capital Contribution in an amount equal to the lower of (i) 72.73% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount reduced by the amount of any Capital Contribution previously made by either Support Provider to the Fund under this Agreement.  The parties hereto acknowledge that the Related CSA provides for a Capital Contribution to be made by the Related Support Providers under the Related CSA in an amount equal to the lower of (i) 27.27% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA reduced by the amount of any Capital Contributions previously made by either Related Support Provider to the Fund under the Related CSA.</P></DIR>
</DIR>

<B><P ALIGN="JUSTIFY">Section 5.	<U>Amendment to LMCSIV CSA</U>.</B>  Legg Mason, LMCSIV and the Fund hereby agree that Section 3(a) of the LMCSIV CSA is hereby amended by deleting Section 3(a) in its entirety and restating it as follows:</P><DIR>
<DIR>

<P ALIGN="JUSTIFY">(a)	If a Contribution Event occurs prior to the occurrence of a Termination Event, the Support Provider will make a Capital Contribution in an amount equal to the lower of (i) 27.27% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount reduced by the amount of any Capital Contribution previously made by either Support Provider to the Fund under this Agreement.  The parties hereto acknowledge that the Related CSA provides for a Capital Contribution to be made by the Related Support Providers under the Related CSA in an amount equal to the lower of (i) 72.73% of the Loss incurred as a result of such Contribution Event, or (ii) the Maximum Contribution Amount provided for in the Related CSA reduced by the amount of any Capital Contributions previously made by either Related Support Provider to the Fund under the Related CSA.</P>
<B><P ALIGN="JUSTIFY"></P></DIR>
</DIR>

<P ALIGN="JUSTIFY">Section 6.	<U>Conditions to Effectiveness</U>.</B>  This Amendment shall not become effective until each party hereto receives a counterpart of this Amendment, executed by each Support Provider and the Fund.  In addition, the parties hereto hereby agree to provide the Staff of the Division of Investment Management of the Securities and Exchange Commission with prompt written notice of this Amendment pursuant to, and in accordance with, Section 6(e) of each Credit Support Agreement.</P>
<P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>Section 7.	<U>Representations and Warranties</U></FONT><FONT FACE="Arial" SIZE=3>.</B></FONT><FONT FACE="Book Antiqua" SIZE=3>  Each Support Provider hereby represents that, on and as of the date hereof, each of the representations and warranties made by it in Section 5 of its applicable Credit Support Agreement remain true as of the date hereof, <U>provided</U>, that all references therein to the "Agreement" shall refer to such Credit Support Agreement as amended hereby.</P></FONT>
<P ALIGN="CENTER"><CENTER><TABLE CELLSPACING=0 BORDER=0 WIDTH=738>
<TR><TD VALIGN="TOP">
<FONT SIZE=2><P ALIGN="CENTER">4</FONT></TD>
</TR>
<TR><TD VALIGN="TOP" BGCOLOR="#000000" HEIGHT=1><P></P></TD>
</TR>
<TR><TD VALIGN="TOP" HEIGHT=4><P></P></TD>
</TR>
</TABLE>
</CENTER></P>

<FONT FACE="Book Antiqua" SIZE=3><P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>Section 8.	<U>Ratification</U>, <U>Etc</B></U>.  Except as expressly amended hereby, each Credit Support Agreement and all documents, instruments and agreements related thereto are hereby ratified and confirmed in all respects by the applicable parties thereto and shall continue in full force and effect.  Each Credit Support Agreement and this Amendment shall be read and construed as a single agreement.  All references in each Credit Support Agreement or any related agreement or instrument to such Credit Support Agreement shall hereafter refer to such Credit Support Agreement as amended hereby.</P>
<P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>Section 9.	<U>No Waiver</U>.</B></FONT><FONT FACE="Arial" SIZE=3> </FONT><FONT FACE="Book Antiqua" SIZE=3> Nothing contained herein shall constitute a waiver of, impair or otherwise affect any obligation of any Support Provider or any rights of the Fund consequent thereon.</P>
<P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>Section 10.	<U>Counterparts</B></U>.  This Amendment may be executed in one or more counterparts, each of which shall be deemed an original but which together shall constitute one and the same instrument.</P>
<P ALIGN="JUSTIFY"></P>
<P ALIGN="JUSTIFY">	<B>Section 11.	<U>Governing Law</U>.</B>  <B>THIS AMENDMENT SHALL BE GOVERNED BY, AND CONSTRUED IN ACCORDANCE WITH, THE LAWS OF THE STATE OF MARYLAND (WITHOUT REFERENCE TO CONFLICT OF LAWS)</B>.</P>
<P ALIGN="JUSTIFY"></P></FONT>
<P ALIGN="CENTER"><CENTER><TABLE CELLSPACING=0 BORDER=0 WIDTH=738>
<TR><TD VALIGN="TOP">
<FONT SIZE=2><P ALIGN="CENTER">5</FONT></TD>
</TR>
<TR><TD VALIGN="TOP" BGCOLOR="#000000" HEIGHT=1><P></P></TD>
</TR>
<TR><TD VALIGN="TOP" HEIGHT=4><P></P></TD>
</TR>
</TABLE>
</CENTER></P>

<FONT FACE="Book Antiqua" SIZE=3><P ALIGN="JUSTIFY"></P>
<B><P ALIGN="JUSTIFY">IN WITNESS WHEREOF</B>, the parties hereto have executed this Amendment as a document under seal as of the date first above written.</P>
<P ALIGN="JUSTIFY"> </P><DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>

<P>LEGG MASON, INC.</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By: <U>/s/ Charles J. Daley, Jr.</U><BR>
Name:  Charles J. Daley, Jr.<BR>
Title:  Sr. VP, CFO and Treasurer</P>
</FONT><FONT FACE="Book Antiqua" SIZE=3><P> </P>
<P>LM CAPITAL COMPANY, LLC</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By: <U>/s/ Charles J. Daley, Jr.</U><BR>
Name:  Charles J. Daley, Jr.<BR>
</FONT><FONT FACE="Book Antiqua" SIZE=3>Title:  President and Treasurer</P>
<P> </P>
<P>LM CAPITAL SUPPORT I, LLC</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By: <U>/s/ Charles J. Daley, Jr.</U><BR>
Name:  Charles J. Daley, Jr.<BR>
</FONT><FONT FACE="Book Antiqua" SIZE=3>Title:  President and Treasurer</P>

<P> </P>
<P>LM CAPITAL SUPPORT II, LLC</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By: <U>/s/ Charles J. Daley, Jr.</U><BR>
Name:  Charles J. Daley, Jr.<BR>
</FONT><FONT FACE="Book Antiqua" SIZE=3>Title:  President and Treasurer</P>
<P> </P>
<P>LM CAPITAL SUPPORT III, LLC</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By: <U>/s/ Charles J. Daley, Jr.</U><BR>
Name:  Charles J. Daley, Jr.<BR>
</FONT><FONT FACE="Book Antiqua" SIZE=3>Title:  President and Treasurer</P>
<P> </P>
<P>LM CAPITAL SUPPORT IV, LLC</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By: <U>/s/ Charles J. Daley, Jr.</U><BR>
Name:  Charles J. Daley, Jr.<BR>
</FONT><FONT FACE="Book Antiqua" SIZE=3>Title:  President and Treasurer</P>
<P> </P>
<P>LIQUID RESERVES PORTFOLIO,<BR>
A SERIES OF MASTER PORTFOLIO TRUST</P>
</FONT><FONT FACE="Century Schoolbook,Century"><P>By:<U> /s/ Frances Guggino</U><BR>
Name:  Frances Guggino<BR>
</FONT><FONT FACE="Book Antiqua" SIZE=3>Title:  CFO and Treasurer</P>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</FONT></BODY>
</HTML>